Skip to content
Snippets Groups Projects
Commit 743e9801 authored by talregev's avatar talregev
Browse files

clean buildscript.gradle

add maven.gradle for other projects use maven repoistories.
parent 1b90302a
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@
rootProject.buildscript {
String rosMavenPath = System.getenv("ROS_MAVEN_PATH")
String rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY")
repositories {
if (rosMavenPath != null) {
rosMavenPath.tokenize(":").each { path ->
......@@ -38,14 +37,12 @@ rootProject.buildscript {
maven {
url rosMavenRepository
}
} else {
}
maven {
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
}
}
mavenCentral()
}
dependencies {
classpath "org.ros.rosjava_bootstrap:gradle_plugins:[0.2,0.3)"
}
......
rootProject.allprojects {
String rosMavenPath = System.getenv("ROS_MAVEN_PATH")
String rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY")
repositories {
if (rosMavenPath != null) {
rosMavenPath.tokenize(":").each { path ->
//noinspection GroovyAssignabilityCheck
maven {
// We can't use uri() here because we aren't running inside something
// that implements the Script interface.
url "file:${path}"
}
}
}
//noinspection GroovyAssignabilityCheck
maven {
url "http://repository.springsource.com/maven/bundles/release"
}
//noinspection GroovyAssignabilityCheck
maven {
url "http://repository.springsource.com/maven/bundles/external"
}
if (rosMavenRepository != null) {
//noinspection GroovyAssignabilityCheck
maven {
url rosMavenRepository
}
}
//noinspection GroovyAssignabilityCheck
maven {
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
}
mavenCentral()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment