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

Commit 6ef8dc0

Browse files
committed
Merge pull request #17 from damonkohler/work
Lots of bug fixes and clean ups.
2 parents 05c6e73 + b19a808 commit 6ef8dc0

File tree

10 files changed

+255
-280
lines changed

10 files changed

+255
-280
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ bin
44
.project
55
.classpath
66
.settings
7+
*.iml
8+
.idea

build.gradle

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,55 @@
1515
*/
1616

1717
task wrapper(type: Wrapper) {
18-
gradleVersion = '1.8'
19-
}
20-
21-
project.ext {
22-
/* the ros plugin defines this, but since we're building the plugin... */
23-
rosMavenDeploymentRepository = "$System.env.ROS_MAVEN_DEPLOYMENT_REPOSITORY"
24-
rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':')
25-
rosMavenRepository = "$System.env.ROS_MAVEN_REPOSITORY"
18+
gradleVersion = "1.9"
2619
}
2720

2821
allprojects {
29-
group='org.ros.rosjava_bootstrap'
30-
version = '0.2.0'
22+
group = "org.ros.rosjava_bootstrap"
23+
version = "0.2.0"
3124
}
3225

3326
subprojects {
34-
/* Have to manually do this below since our gradle plugin is our sub project */
35-
apply plugin: 'eclipse'
36-
apply plugin: 'java'
37-
apply plugin: 'maven'
38-
apply plugin: 'maven-publish'
27+
apply plugin: "eclipse"
28+
apply plugin: "java"
29+
apply plugin: "maven"
30+
apply plugin: "maven-publish"
3931

4032
sourceCompatibility = 1.6
4133
targetCompatibility = 1.6
4234

43-
def repoURLs = project.rosMavenPath.collect { 'file://' + it }
35+
def rosMavenDeploymentRepository = System.getenv("ROS_MAVEN_DEPLOYMENT_REPOSITORY")
36+
def rosMavenRepository = System.getenv("ROS_MAVEN_REPOSITORY")
37+
def rosMavenPath = System.getenv("ROS_MAVEN_PATH")
38+
4439
repositories {
45-
repoURLs.each { p ->
46-
maven {
47-
url p
40+
if (rosMavenPath != null) {
41+
rosMavenPath.tokenize(":").each { path ->
42+
maven {
43+
url uri(path)
44+
}
4845
}
4946
}
5047
mavenLocal()
5148
maven {
52-
url project.rosMavenRepository
49+
url "http://repository.springsource.com/maven/bundles/release"
50+
}
51+
maven {
52+
url "http://repository.springsource.com/maven/bundles/external"
53+
}
54+
if (rosMavenRepository != null) {
55+
maven {
56+
url rosMavenRepository
57+
}
58+
} else {
59+
maven {
60+
url "https://github.com/rosjava/rosjava_mvn_repo/raw/master"
61+
}
5362
}
63+
mavenCentral()
5464
}
55-
if ( project.rosMavenDeploymentRepository != 'null' && project.rosMavenDeploymentRepository != '' ) {
65+
if (rosMavenDeploymentRepository != null &&
66+
rosMavenDeploymentRepository != "") {
5667
publishing {
5768
publications {
5869
mavenJava(MavenPublication) {
@@ -61,11 +72,11 @@ subprojects {
6172
}
6273
repositories {
6374
maven {
64-
url 'file://' + project.rosMavenDeploymentRepository
75+
url uri(rosMavenDeploymentRepository)
6576
}
6677
}
6778
}
6879
}
6980
}
7081

71-
defaultTasks 'install'
82+
defaultTasks "publishMavenJavaPublicationToMavenRepository"

gradle/wrapper/gradle-wrapper.jar

592 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Oct 18 14:47:55 CEST 2013
1+
#Wed Feb 12 13:19:19 CET 2014
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
6+
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-bin.zip

gradle_plugins/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* the License.
1515
*/
1616

17-
apply plugin: 'groovy'
17+
apply plugin: "groovy"
1818

1919
dependencies {
20-
compile gradleApi()
21-
compile localGroovy()
20+
compile gradleApi()
21+
compile "org.codehaus.groovy:groovy-all:2.2.0"
2222
}

0 commit comments

Comments
 (0)