Fix compilation

This commit is contained in:
William Brawner 2023-09-27 08:21:20 -06:00
parent d02f472e48
commit fcf9bc6cd3

View file

@ -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
}
}