feat: Java 8 compatibility (#19)

Closes #18

Co-authored-by: Ronny Bräunlich <ronny.braeunlich@cbc.de>
This commit is contained in:
Ronny Bräunlich 2024-10-15 21:03:54 +02:00 committed by GitHub
parent dd3d500496
commit 6f33f9c2a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 25 deletions

View file

@ -45,12 +45,12 @@ kotlin {
tasks {
withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
withType<KotlinJvmCompile>().configureEach {
compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
}
withType<Test>().configureEach {