1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

More specific running order to generate R.java.

This commit is contained in:
Cedric Beust 2015-11-02 23:11:47 -08:00
parent 9134c41cc5
commit 8f12f19238

View file

@ -70,7 +70,8 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler) :
fun androidJar(project: Project) : Path =
Paths.get(ANDROID_HOME, "platforms", "android-${compileSdkVersion(project)}", "android.jar")
@Task(name = "generateR", description = "Generate the R.java file", runBefore = arrayOf("compile"))
@Task(name = "generateR", description = "Generate the R.java file",
runBefore = arrayOf("compile"), runAfter = arrayOf("clean"))
fun taskGenerateRFile(project: Project) : TaskResult {
val flavor = "debug"