Target Java 16
This commit is contained in:
parent
4c7face8a1
commit
30f4fc2232
|
@ -35,7 +35,8 @@ group = "fr.username404"
|
|||
version = "0.3.4"
|
||||
val groupAndName = "${rootProject.group}.${rootProject.name.toLowerCase()}"
|
||||
|
||||
val javaVer: String = "8"
|
||||
val javaVer: String = "16"
|
||||
val sourceJavaVer: String = javaVer
|
||||
val kotlinVer: String by rootProject
|
||||
val kotlinSplitVersion = kotlinVer.split('.')
|
||||
val serializationVer: String by rootProject
|
||||
|
@ -171,7 +172,6 @@ subprojects {
|
|||
})
|
||||
}
|
||||
val homeDir = System.getProperty("java.home") as String
|
||||
if (JavaVersion.current().isJava9Compatible) {
|
||||
val jmodsLocations = setOf(
|
||||
"$homeDir/jmods/java.base.jmod",
|
||||
"$homeDir/jmods/java.desktop.jmod",
|
||||
|
@ -181,7 +181,6 @@ subprojects {
|
|||
else jmodsLocations.forEach {
|
||||
libraryjars(it)
|
||||
}
|
||||
} else libraryjars("$homeDir/lib/rt.jar")
|
||||
// Note: dontpreverify() should NOT be used, it will cause errors at runtime
|
||||
useuniqueclassmembernames()
|
||||
optimizationpasses(4)
|
||||
|
@ -220,7 +219,6 @@ allprojects {
|
|||
dependencies {
|
||||
implementation(kotlin("stdlib-jdk8", kotlinVer))
|
||||
implementation(kotlin("reflect", kotlinVer))
|
||||
annotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:0.4.2")
|
||||
}
|
||||
tasks {
|
||||
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
|
||||
|
@ -244,7 +242,6 @@ allprojects {
|
|||
release.set(javaVer.toInt())
|
||||
sourceCompatibility = "11"
|
||||
targetCompatibility = javaVer
|
||||
compilerArgs.add("-Xplugin:jabel")
|
||||
}
|
||||
}
|
||||
withType(ProcessResources::class) {
|
||||
|
|
Loading…
Reference in New Issue