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

added excludes to the ros android plugin.

parent bac4b9b8
No related branches found
No related tags found
No related merge requests found
package org.ros.gradle_plugins; package org.ros.gradle_plugins;
import org.gradle.api.Project; import org.gradle.api.Project
import org.gradle.api.Plugin; import org.gradle.api.Plugin
import org.gradle.api.*; import java.util.HashMap
/* /*
* Configures java for the ros-android build environment. Pretty elementary right now, * Configures java for the ros-android build environment. Pretty elementary right now,
...@@ -16,8 +16,18 @@ class RosAndroidPlugin implements Plugin<Project> { ...@@ -16,8 +16,18 @@ class RosAndroidPlugin implements Plugin<Project> {
if (!project.plugins.findPlugin('ros')) { if (!project.plugins.findPlugin('ros')) {
project.apply(plugin: 'ros') project.apply(plugin: 'ros')
} }
project.apply(plugin: 'android')
project.extensions.create("rosandroid", RosAndroidPluginExtension) project.extensions.create("rosandroid", RosAndroidPluginExtension)
project.rosandroid.buildToolsVersion = "17" project.rosandroid.buildToolsVersion = "17"
project.configurations.create('compile')
/*
* Our maven repo 3rd parties are currently incompatible with android
* junit especially could use a look at - find a compatible version!
*/
def excludes = new HashMap<String, String>()
excludes.put('group', 'junit')
excludes.put('group', 'xml-apis')
project.configurations['compile'].exclude(excludes)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment