Fix compilation
This commit is contained in:
parent
d02f472e48
commit
fcf9bc6cd3
1 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,8 @@ plugins {
|
|||
alias(libs.plugins.kotlin.jvm)
|
||||
}
|
||||
|
||||
val javaVersion = JavaVersion.VERSION_17
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@ -27,7 +29,11 @@ allprojects {
|
|||
}
|
||||
group = "com.wbrawner"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
tasks.withType<JavaCompile> {
|
||||
sourceCompatibility = javaVersion.majorVersion
|
||||
targetCompatibility = javaVersion.majorVersion
|
||||
}
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "16"
|
||||
kotlinOptions.jvmTarget = javaVersion.majorVersion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue