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

use ROS_MAVEN_REPOSITORY

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