Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
plugged and maven'd.
Browse files Browse the repository at this point in the history
  • Loading branch information
stonier committed Sep 17, 2013
1 parent 7b4ee4c commit 76621bf
Show file tree
Hide file tree
Showing 13 changed files with 83 additions and 65 deletions.
12 changes: 12 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="application_management/src/main/java"/>
<classpathentry kind="src" path="listener/src/main/java"/>
<classpathentry kind="src" path="make_a_map/src/main/java"/>
<classpathentry kind="src" path="map_manager/src/main/java"/>
<classpathentry kind="src" path="map_nav/src/main/java"/>
<classpathentry kind="src" path="teleop/src/main/java"/>
<classpathentry kind="lib" path="gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ local.properties
proguard-project.txt
.gradle
build
.project
.classpath

# These are Android Studio files, might be worth including these later.
.idea
Expand Down
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android_apps</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(android_apps)

find_package(catkin REQUIRED rosjava_tools)

catkin_android_setup(assembleRelease publishToMavenLocal)
catkin_android_setup(assembleRelease uploadArchives)

catkin_package()

10 changes: 0 additions & 10 deletions README

This file was deleted.

11 changes: 6 additions & 5 deletions application_management/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
*/

dependencies {
compile 'ros.android_core:android_gingerbread_mr1:0.0.0-SNAPSHOT'
compile 'com.github.rosjava.android_extras:gingerbread:0.1.0'
compile 'ros.rosjava_core:rosjava:0.0.0-SNAPSHOT'
compile 'org.ros.android_core:android_gingerbread_mr1:0.1.+'
compile 'com.github.rosjava.android_extras:gingerbread:0.1.+'
compile 'org.ros.rosjava_core:rosjava:0.1.+'
compile 'org.ros.rosjava_messages:rocon_app_manager_msgs:0.6.+'
compile 'org.ros.rosjava_messages:gateway_msgs:0.6.+'
compile 'org.ros.rosjava_messages:diagnostic_msgs:1.10.+'
}

apply plugin: 'android-library'

android {
compileSdkVersion 10
buildToolsVersion androidBuildToolsVersion
}

65 changes: 32 additions & 33 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,54 @@
* License for the specific language governing permissions and limitations under
* the License.
*/

task wrapper(type: Wrapper) {
gradleVersion = '1.6'
}

allprojects {
group 'com.github.rosjava.android_apps'
version = '0.1.0'
gradleVersion = '1.7'
}

ext.androidBuildToolsVersion = "17"

subprojects {
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.0'
}
}

apply plugin: 'maven'

buildscript {
def rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':').collect { 'file://' + it }
repositories {
rosMavenPath.each { p ->
maven {
url p
}
}
mavenLocal()
maven {
url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master'
}
}
configurations.add('compile') {
exclude group: 'junit'
exclude group: 'xml-apis'
dependencies {
classpath group: 'org.ros.rosjava_bootstrap', name: 'gradle_plugins', version: '0.1.+'
}
}

apply plugin: 'catkin'

allprojects {
group 'com.github.rosjava.android_apps'
version = project.catkin.pkg.version
}

uploadArchives {
subprojects {
apply plugin: 'maven'
apply plugin: 'ros'
apply plugin: 'ros-android'
buildscript {
repositories {
mavenDeployer {
repository url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath
}
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.6'
}
}
task publishToMavenLocal() << {
description = 'installs .aar files to the local maven repository.'
}
afterEvaluate { Project project ->
if (plugins.findPlugin('android-library')) {
publishToMavenLocal.dependsOn('uploadArchives')
/*
* Delayed configuration here, because we delay the decision for
* applying android or android-library plugins until inside the sub-projects.
*/
project.android {
buildToolsVersion project.rosandroid.buildToolsVersion
}
}
}
5 changes: 2 additions & 3 deletions listener/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
*/

dependencies {
compile 'ros.android_core:android_gingerbread_mr1:0.0.0-SNAPSHOT'
compile 'ros.rosjava_core:rosjava:0.0.0-SNAPSHOT'
compile 'org.ros.android_core:android_gingerbread_mr1:0.1.+'
compile 'org.ros.rosjava_core:rosjava:0.1.+'
compile project(':application_management')
}

apply plugin: 'android'

android {
compileSdkVersion 10
buildToolsVersion androidBuildToolsVersion
}

6 changes: 3 additions & 3 deletions make_a_map/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

dependencies {
compile project(':application_management')
compile 'ros.android_core:android_honeycomb_mr2:0.0.0-SNAPSHOT'
compile 'ros.rosjava_core:rosjava_geometry:0.0.0-SNAPSHOT'
compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
compile 'org.ros.rosjava_core:rosjava_geometry:0.1.+'
compile 'org.ros.rosjava_messages:map_store:0.3.+'
}

apply plugin: 'android'

android {
compileSdkVersion 13
buildToolsVersion androidBuildToolsVersion
}

4 changes: 2 additions & 2 deletions map_manager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
*/
dependencies {
compile project(':application_management')
compile 'ros.android_core:android_honeycomb_mr2:0.0.0-SNAPSHOT'
compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
compile 'org.ros.rosjava_messages:map_store:0.3.+'
}

apply plugin: 'android'

android {
compileSdkVersion 13
buildToolsVersion androidBuildToolsVersion
}

7 changes: 4 additions & 3 deletions map_nav/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
*/
dependencies {
compile project(':application_management')
compile 'ros.android_core:android_honeycomb_mr2:0.0.0-SNAPSHOT'
compile 'ros.rosjava_core:rosjava_geometry:0.0.0-SNAPSHOT'
compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
compile 'org.ros.rosjava_core:rosjava_geometry:0.1.+'
compile 'org.ros.rosjava_messages:map_store:0.3.+'
compile 'org.ros.rosjava_messages:move_base_msgs:1.11.+'
}

apply plugin: 'android'

android {
compileSdkVersion 13
buildToolsVersion androidBuildToolsVersion
}

4 changes: 3 additions & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
<url type="repository">https://github.com/rosjava/android_apps</url>
<url type="bugtracker">https://github.com/rosjava/android_apps/issues</url>
<maintainer email="[email protected]">Daniel Stonier</maintainer>
<author email="[email protected]">Daniel Stonier</author>
<author email="[email protected]">Kazuto Murase</author>
<license>Apache 2.0</license>

<buildtool_depend>catkin</buildtool_depend>
<build_depend>rosjava_tools</build_depend>
<build_depend>rosjava_build_tools</build_depend>
<build_depend>rosjava_bootstrap</build_depend>
<build_depend>android_core</build_depend>
<build_depend>android_extras</build_depend>
<build_depend>zeroconf_jmdns_suite</build_depend>
Expand Down
3 changes: 1 addition & 2 deletions teleop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
*/
dependencies {
compile project(':application_management')
compile 'ros.android_core:android_honeycomb_mr2:0.0.0-SNAPSHOT'
compile 'org.ros.android_core:android_honeycomb_mr2:0.1.+'
}

apply plugin: 'android'

android {
compileSdkVersion 13
buildToolsVersion androidBuildToolsVersion
}


Expand Down

0 comments on commit 76621bf

Please sign in to comment.