This repository was archived by the owner on Jan 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +69
-34
lines changed
gradle_plugins/src/main/groovy/org/ros/gradle_plugins Expand file tree Collapse file tree 5 files changed +69
-34
lines changed Original file line number Diff line number Diff line change 14
14
* the License.
15
15
*/
16
16
17
- task wrapper (type : Wrapper ) {
18
- gradleVersion = ' 2.2.1'
19
- }
17
+ apply from : project. file(' gradle.gradle' )
20
18
21
19
allprojects {
22
20
group= " org.ros.rosjava_bootstrap"
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
rootProject. buildscript {
18
- String rosMavenPath = System . getenv(" ROS_MAVEN_PATH" )
19
- String rosMavenRepository = System . getenv(" ROS_MAVEN_REPOSITORY" )
20
-
21
- repositories {
22
- if (rosMavenPath != null ) {
23
- rosMavenPath. tokenize(" :" ). each { path ->
18
+ String rosMavenPath = System . getenv(" ROS_MAVEN_PATH" )
19
+ String rosMavenRepository = System . getenv(" ROS_MAVEN_REPOSITORY" )
20
+ repositories {
21
+ if (rosMavenPath != null ) {
22
+ rosMavenPath. tokenize(" :" ). each { path ->
23
+ maven {
24
+ // We can't use uri() here because we aren't running inside something
25
+ // that implements the Script interface.
26
+ url " file:${ path} "
27
+ }
28
+ }
29
+ }
24
30
maven {
25
- // We can't use uri() here because we aren't running inside something
26
- // that implements the Script interface.
27
- url " file:${ path} "
31
+ url " http://repository.springsource.com/maven/bundles/release"
28
32
}
29
- }
30
- }
31
- maven {
32
- url " http://repository.springsource.com/maven/bundles/release"
33
- }
34
- maven {
35
- url " http://repository.springsource.com/maven/bundles/external"
33
+ maven {
34
+ url " http://repository.springsource.com/maven/bundles/external"
35
+ }
36
+ if (rosMavenRepository != null ) {
37
+ maven {
38
+ url rosMavenRepository
39
+ }
40
+ }
41
+ maven {
42
+ url " https://github.com/rosjava/rosjava_mvn_repo/raw/master"
43
+ }
44
+ mavenCentral()
36
45
}
37
- if (rosMavenRepository != null ) {
38
- maven {
39
- url rosMavenRepository
40
- }
41
- } else {
42
- maven {
43
- url " https://github.com/rosjava/rosjava_mvn_repo/raw/master"
44
- }
46
+ dependencies {
47
+ classpath " org.ros.rosjava_bootstrap:gradle_plugins:[0.2,0.3)"
45
48
}
46
- mavenCentral()
47
- }
48
-
49
- dependencies {
50
- classpath " org.ros.rosjava_bootstrap:gradle_plugins:[0.2,0.3)"
51
- }
52
49
}
Original file line number Diff line number Diff line change
1
+ task wrapper (type : Wrapper ) {
2
+ gradleVersion = ' 2.2.1'
3
+ }
4
+
5
+
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class CatkinPackages {
93
93
def manifestTree = project. fileTree(dir : workspace,
94
94
include : " **/package.xml" )
95
95
manifestTree. each { file ->
96
- def pkg = new CatkinPackage (file)
96
+ def pkg = new CatkinPackage (project, file)
97
97
if (this . pkgs. containsKey(pkg. name)) {
98
98
if (this . pkgs[pkg. name]. version < pkg. version) {
99
99
println (" Catkin generate tree: replacing older version of " + pkg. name + " [" + this . pkgs[pkg. name]. version + " ->" + pkg. version + " ]" )
Original file line number Diff line number Diff line change
1
+ rootProject. allprojects {
2
+ String rosMavenPath = System . getenv(" ROS_MAVEN_PATH" )
3
+ String rosMavenRepository = System . getenv(" ROS_MAVEN_REPOSITORY" )
4
+ repositories {
5
+ if (rosMavenPath != null ) {
6
+ rosMavenPath. tokenize(" :" ). each { path ->
7
+ // noinspection GroovyAssignabilityCheck
8
+ maven {
9
+ // We can't use uri() here because we aren't running inside something
10
+ // that implements the Script interface.
11
+ url " file:${ path} "
12
+ }
13
+ }
14
+ }
15
+ // noinspection GroovyAssignabilityCheck
16
+ maven {
17
+ url " http://repository.springsource.com/maven/bundles/release"
18
+ }
19
+ // noinspection GroovyAssignabilityCheck
20
+ maven {
21
+ url " http://repository.springsource.com/maven/bundles/external"
22
+ }
23
+ if (rosMavenRepository != null ) {
24
+ // noinspection GroovyAssignabilityCheck
25
+ maven {
26
+ url rosMavenRepository
27
+ }
28
+ }
29
+ // noinspection GroovyAssignabilityCheck
30
+ maven {
31
+ url " https://github.com/rosjava/rosjava_mvn_repo/raw/master"
32
+ }
33
+ mavenCentral()
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments