build: target JDK 17

BREAKING-CHANGE: Java 17 or above is now required
This commit is contained in:
Gauthier Roebroeck 2022-11-10 16:58:35 +08:00
parent 425981e928
commit 9569c5b6e0

View File

@ -138,12 +138,12 @@ dependencies {
val webui = "$rootDir/komga-webui"
tasks {
withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
sourceCompatibility = "17"
targetCompatibility = "17"
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
freeCompilerArgs = listOf(
"-Xjsr305=strict",
"-opt-in=kotlin.time.ExperimentalTime",