Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Commit f55cae0

Browse files
committed
1 parent 09eef3c commit f55cae0

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

bootstrap.gradle

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,32 @@
1414
* the License.
1515
*/
1616

17-
buildscript {
18-
def rosMavenPath = System.getenv("ROS_MAVEN_PATH")
19-
def rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY")
17+
String rosMavenPath = System.getenv("ROS_MAVEN_PATH")
18+
String rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY")
2019

21-
repositories {
22-
if (rosMavenPath != null) {
23-
rosMavenPath.tokenize(":").each { path ->
24-
maven {
25-
url uri(path)
26-
}
20+
repositories {
21+
if (rosMavenPath != null) {
22+
rosMavenPath.tokenize(":").each { path ->
23+
maven {
24+
url uri(path)
2725
}
2826
}
29-
mavenLocal()
27+
}
28+
mavenLocal()
29+
maven {
30+
url "http://repository.springsource.com/maven/bundles/release"
31+
}
32+
maven {
33+
url "http://repository.springsource.com/maven/bundles/external"
34+
}
35+
if (rosMavenRepository != null) {
3036
maven {
31-
url "http://repository.springsource.com/maven/bundles/release"
37+
url rosMavenRepository
3238
}
39+
} else {
3340
maven {
34-
url "http://repository.springsource.com/maven/bundles/external"
41+
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
3542
}
36-
if (rosMavenRepository != null) {
37-
maven {
38-
url rosMavenRepository
39-
}
40-
} else {
41-
maven {
42-
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
43-
}
44-
}
45-
mavenCentral()
46-
}
47-
48-
dependencies {
49-
classpath group: "org.ros.rosjava_bootstrap", name: "gradle_plugins", version: "0.2.0"
5043
}
44+
mavenCentral()
5145
}

0 commit comments

Comments
 (0)