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

Commit 5bf0a64

Browse files
committed
Adds a bootstrap.gradle file constaining the common buildscript closure code. This should not change often and can be applied via URL.
1 parent 3ee1817 commit 5bf0a64

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

bootstrap.gradle

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright (C) 2014 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
17+
buildscript {
18+
def rosMavenPath = System.getenv("ROS_MAVEN_PATH")
19+
def rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY")
20+
21+
repositories {
22+
if (rosMavenPath != null) {
23+
rosMavenPath.tokenize(":").each { path ->
24+
maven {
25+
url uri(path)
26+
}
27+
}
28+
}
29+
mavenLocal()
30+
maven {
31+
url "http://repository.springsource.com/maven/bundles/release"
32+
}
33+
maven {
34+
url "http://repository.springsource.com/maven/bundles/external"
35+
}
36+
if (rosMavenRepository != null) {
37+
maven {
38+
url rosMavenRepository
39+
}
40+
} else {
41+
maven {
42+
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
43+
}
44+
}
45+
mavenCentral()
46+
}
47+
48+
dependencies {
49+
classpath group: "org.ros.rosjava_bootstrap", name: "gradle_plugins", version: "0.2.0"
50+
}
51+
}

0 commit comments

Comments
 (0)