build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) 2011 Google Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. task wrapper(type: Wrapper) {
  17. gradleVersion = '1.11'
  18. }
  19. buildscript {
  20. def rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':').collect { 'file://' + it }
  21. def rosMavenRepository = "$System.env.ROS_MAVEN_REPOSITORY"
  22. repositories {
  23. rosMavenPath.each { p ->
  24. maven {
  25. url p
  26. }
  27. }
  28. mavenLocal()
  29. maven {
  30. url rosMavenRepository
  31. }
  32. }
  33. dependencies {
  34. classpath group: 'org.ros.rosjava_bootstrap', name: 'gradle_plugins', version: '[0.1,0.2)'
  35. }
  36. }
  37. apply plugin: 'catkin'
  38. allprojects {
  39. group 'org.ros.android_core'
  40. version = project.catkin.pkg.version
  41. }
  42. subprojects {
  43. if (name != 'docs') {
  44. apply plugin: 'ros-android'
  45. }
  46. }