build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (C) 2013 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. apply from: project.file('gradle.gradle')
  17. allprojects {
  18. group="org.ros.rosjava_bootstrap"
  19. version = "0.3.3"
  20. }
  21. subprojects {
  22. apply plugin: 'java'
  23. apply plugin: 'maven'
  24. apply plugin: 'maven-publish'
  25. apply plugin: "idea"
  26. apply plugin: "eclipse"
  27. sourceCompatibility = 1.6
  28. targetCompatibility = 1.6
  29. // These external repositories are copied from bootstrap.gradle.
  30. repositories {
  31. jcenter()
  32. maven {
  33. url "http://repository.springsource.com/maven/bundles/release"
  34. }
  35. maven {
  36. url "http://repository.springsource.com/maven/bundles/external"
  37. }
  38. }
  39. // Configuration of the deployment repository is copied from the RosPlugin.
  40. String mavenDeploymentRepository = System.getenv("ROS_MAVEN_DEPLOYMENT_REPOSITORY")
  41. if (mavenDeploymentRepository != null &&
  42. mavenDeploymentRepository != "") {
  43. publishing {
  44. publications {
  45. mavenJava(MavenPublication) {
  46. from components.java
  47. }
  48. }
  49. repositories {
  50. maven {
  51. url 'file://' + mavenDeploymentRepository
  52. }
  53. }
  54. }
  55. } else {
  56. logger.warn("ROS_MAVEN_DEPLOYMENT_REPOSITORY is not set. Have you sourced setup.bash?")
  57. }
  58. }
  59. defaultTasks 'publish', 'installDist'