Use 16 as our toolchain, but set release to 8

This commit is contained in:
Octavia Togami 2021-06-02 15:03:33 -07:00
parent 5a7cbfd6ef
commit 8cfbf7e478
No known key found for this signature in database
GPG Key ID: CC364524D1983C99
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@
plugins.withId("java") {
the<JavaPluginExtension>().toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion.set(JavaLanguageVersion.of(16))
}
}

View File

@ -44,6 +44,7 @@
val disabledLint = listOf(
"processing", "path", "fallthrough", "serial"
)
options.release.set(8)
options.compilerArgs.addAll(listOf("-Xlint:all") + disabledLint.map { "-Xlint:-$it" })
options.isDeprecation = true
options.encoding = "UTF-8"