Compile with target java 21, remove unsupported MC versions (#2836)

* Compile with target java 21, remove unsupported MC versions

* update bug report template
This commit is contained in:
Hannes Greule
2024-07-21 09:19:59 +02:00
committed by GitHub
parent 561ef4afdd
commit 2e1a8f9665
37 changed files with 6 additions and 17139 deletions

View File

@ -23,7 +23,7 @@ fun Project.applyCommonJavaConfiguration(sourcesJar: Boolean, banSlf4j: Boolean
val disabledLint = listOf(
"processing", "path", "fallthrough", "serial", "overloads", "this-escape",
)
options.release.set(17)
options.release.set(21)
options.compilerArgs.addAll(listOf("-Xlint:all") + disabledLint.map { "-Xlint:-$it" })
options.isDeprecation = true
options.encoding = "UTF-8"