Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
evant committed Mar 31, 2015
2 parents 8a278a7 + 8b346e4 commit e23ea55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/groovy/me/tatarka/RetrolambdaPluginAndroid.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ public class RetrolambdaPluginAndroid implements Plugin<Project> {
}

retrolambdaTask.doFirst {
retrolambdaTask.classpath += project.files(var.javaCompile.options.bootClasspath)
if (var.javaCompile.options.bootClasspath) {
retrolambdaTask.classpath += project.files(var.javaCompile.options.bootClasspath)
} else {
// If this is null it means the javaCompile task didn't need to run, don't bother running retrolambda either.
retrolambdaTask.enabled = false
}
}

var.javaCompile.finalizedBy(retrolambdaTask)
Expand Down

0 comments on commit e23ea55

Please sign in to comment.