Skip to content
Snippets Groups Projects
Commit f5fac889 authored by Daniel Stonier's avatar Daniel Stonier
Browse files

use ROS_MAVEN_REPOSITORY

parent 1cba4d0d
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ project.ext { ...@@ -22,6 +22,7 @@ project.ext {
/* the ros plugin defines this, but since we're building the plugin... */ /* the ros plugin defines this, but since we're building the plugin... */
rosMavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY" rosMavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY"
rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':') rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':')
rosMavenRepository = "$System.env.ROS_MAVEN_REPOSITORY"
} }
allprojects { allprojects {
...@@ -47,7 +48,7 @@ subprojects { ...@@ -47,7 +48,7 @@ subprojects {
} }
mavenLocal() mavenLocal()
maven { maven {
url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master' url project.rosMavenRepository
} }
} }
if ( project.rosMavenDeploymentRepository != 'null' && project.rosMavenDeploymentRepository != '' ) { if ( project.rosMavenDeploymentRepository != 'null' && project.rosMavenDeploymentRepository != '' ) {
......
...@@ -28,6 +28,7 @@ class RosPlugin implements Plugin<Project> { ...@@ -28,6 +28,7 @@ class RosPlugin implements Plugin<Project> {
project.extensions.create("ros", RosPluginExtension) project.extensions.create("ros", RosPluginExtension)
project.ros.mavenPath = "$System.env.ROS_MAVEN_PATH".split(':') project.ros.mavenPath = "$System.env.ROS_MAVEN_PATH".split(':')
project.ros.mavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY" project.ros.mavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY"
project.ros.mavenRepository = "$System.env.ROS_MAVEN_REPOSITORY"
/* /*
* Could use some better handling for when this is not defined as it sets * Could use some better handling for when this is not defined as it sets
* file://null, but it doesn't seem to hurt the process any * file://null, but it doesn't seem to hurt the process any
...@@ -41,7 +42,7 @@ class RosPlugin implements Plugin<Project> { ...@@ -41,7 +42,7 @@ class RosPlugin implements Plugin<Project> {
} }
mavenLocal() mavenLocal()
maven { maven {
url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master' url project.ros.mavenRepository
} }
mavenCentral() mavenCentral()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment