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

Compile R.java with 1.6.

This commit is contained in:
Cedric Beust 2015-11-09 16:23:51 -08:00
parent d2fd2dbcb7
commit 21eaa3e414

View file

@ -211,7 +211,9 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler)
val sourceFiles = arrayListOf(Paths.get(rDirectory, "R.java").toFile().path)
val buildDir = Paths.get(project.buildDirectory, "generated", "classes").toFile()
javaCompiler.compile(project, context, listOf(), sourceFiles, buildDir, listOf())
javaCompiler.compile(project, context, listOf(), sourceFiles, buildDir, listOf(
"-source", "1.6", "-target", "1.6"
))
return buildDir
}