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

Commit d2626ab

Browse files
committed
provide the official ros maven repo as a fallback
Even when no ROS_MAVEN_REPOSITORY variable is set (windows). This also lets the user provide their own repo via the variable that will get searched before the official one would. This refs #46.
1 parent 450d2ea commit d2626ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

gradle_plugins/src/main/groovy/org/ros/gradle_plugins/RosPlugin.groovy

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ class RosPlugin implements Plugin<Project> {
4141
url project.ros.mavenRepository
4242
}
4343
}
44+
/*
45+
* This will often be the same as ROS_MAVEN_REPOSITORY, but this way it lets a user
46+
* provide a repository of their own via the environment variable and use this as a fallback.
47+
*/
48+
maven {
49+
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
50+
}
4451
mavenLocal()
4552
maven {
4653
url "http://repository.springsource.com/maven/bundles/release"
@@ -62,6 +69,6 @@ class RosPluginExtension {
6269
RosPluginExtension() {
6370
/* Initialising the strings here gets rid of the dynamic property deprecated warnings. */
6471
this.mavenDeploymentRepository = ""
65-
this.mavenRepository = "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
72+
this.mavenRepository = ""
6673
}
6774
}

0 commit comments

Comments
 (0)