Skip to content

Commit

Permalink
set bytecode jdk to 8, set test to 11 (req. from testcontainers dep)
Browse files Browse the repository at this point in the history
  • Loading branch information
samu-developments committed Jul 29, 2024
1 parent 5778edf commit afa0898
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

buildscript {
repositories {
Expand Down Expand Up @@ -41,8 +42,21 @@ allprojects {
}
}

kotlin.jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
kotlin {
jvmToolchain(11)
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
}

tasks.compileJava {
options.release = 8
}

tasks.compileTestKotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

tasks.compileTestJava {
options.release = 11
}

repositories {
Expand Down

0 comments on commit afa0898

Please sign in to comment.