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

Commit f5fac88

Browse files
committed
use ROS_MAVEN_REPOSITORY
1 parent 1cba4d0 commit f5fac88

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ project.ext {
2222
/* the ros plugin defines this, but since we're building the plugin... */
2323
rosMavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY"
2424
rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':')
25+
rosMavenRepository = "$System.env.ROS_MAVEN_REPOSITORY"
2526
}
2627

2728
allprojects {
@@ -47,7 +48,7 @@ subprojects {
4748
}
4849
mavenLocal()
4950
maven {
50-
url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master'
51+
url project.rosMavenRepository
5152
}
5253
}
5354
if ( project.rosMavenDeploymentRepository != 'null' && project.rosMavenDeploymentRepository != '' ) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class RosPlugin implements Plugin<Project> {
2828
project.extensions.create("ros", RosPluginExtension)
2929
project.ros.mavenPath = "$System.env.ROS_MAVEN_PATH".split(':')
3030
project.ros.mavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY"
31+
project.ros.mavenRepository = "$System.env.ROS_MAVEN_REPOSITORY"
3132
/*
3233
* Could use some better handling for when this is not defined as it sets
3334
* file://null, but it doesn't seem to hurt the process any
@@ -41,7 +42,7 @@ class RosPlugin implements Plugin<Project> {
4142
}
4243
mavenLocal()
4344
maven {
44-
url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master'
45+
url project.ros.mavenRepository
4546
}
4647
mavenCentral()
4748
}

0 commit comments

Comments
 (0)