mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Compile R.java with 1.6.
This commit is contained in:
parent
d2fd2dbcb7
commit
21eaa3e414
1 changed files with 3 additions and 1 deletions
|
@ -211,7 +211,9 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler)
|
||||||
val sourceFiles = arrayListOf(Paths.get(rDirectory, "R.java").toFile().path)
|
val sourceFiles = arrayListOf(Paths.get(rDirectory, "R.java").toFile().path)
|
||||||
val buildDir = Paths.get(project.buildDirectory, "generated", "classes").toFile()
|
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
|
return buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue