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)
|
alias(libs.plugins.kotlin.jvm)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val javaVersion = JavaVersion.VERSION_17
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
|
@ -27,7 +29,11 @@ allprojects {
|
||||||
}
|
}
|
||||||
group = "com.wbrawner"
|
group = "com.wbrawner"
|
||||||
version = "0.0.1-SNAPSHOT"
|
version = "0.0.1-SNAPSHOT"
|
||||||
|
tasks.withType<JavaCompile> {
|
||||||
|
sourceCompatibility = javaVersion.majorVersion
|
||||||
|
targetCompatibility = javaVersion.majorVersion
|
||||||
|
}
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions.jvmTarget = "16"
|
kotlinOptions.jvmTarget = javaVersion.majorVersion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue