Skip to content

Commit

Permalink
Android support fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed May 16, 2017
1 parent 497f9b9 commit 4a30215
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ slice {
}
set2 {
include = ["${projectDir}"]
files = filetree(dir: "b", includes: ['**.ice'])
files = fileTree(dir: "b", includes: ['**.ice'])
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sourceSets {
}
}

version = "1.4.0"
version = "1.4.1"
group = "com.zeroc.gradle.ice-builder"

if(!localOnly.toBoolean()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,13 @@ class SlicePlugin implements Plugin<Project> {
LOGGER.debug("Detected Android project: ${project}. Delaying applying task until project is evaluated")
project.afterEvaluate {
getAndroidVariants(project).all { variant ->
variant.javaCompiler.dependsOn('compileSlice')
variant.registerJavaGeneratingTask(project.tasks.getByName('compileSlice'), project.slice.output)
}
project.android.testVariants.all { variant ->
variant.javaCompiler.dependsOn('compileSlice')
}
project.android.sourceSets.main.java.srcDir project.slice.output
}
} else {
try {
project.tasks.getByName("compileJava").dependsOn('compileSlice');
project.sourceSets.main.java.srcDir project.slice.output
} catch(UnknownTaskException ex) {
LOGGER.error("No compileJava task was found for project: ${project}")
}
project.tasks.getByName("compileJava").dependsOn('compileSlice');
project.sourceSets.main.java.srcDir project.slice.output
}

}

def isAndroidProject(Project project) {
Expand Down

0 comments on commit 4a30215

Please sign in to comment.