Skip to content

Commit

Permalink
Fix Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Jan 12, 2025
1 parent 8439ff7 commit e4b4555
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
`maven-publish`
signing
jacoco
kotlin("jvm") version "1.8.10"
kotlin("jvm") version "2.1.0"
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}

Expand Down
6 changes: 4 additions & 2 deletions cdn-kt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ dependencies {
implementation(kotlin("reflect"))
}

kotlin {
jvmToolchain(8)
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
languageVersion = "1.7"
freeCompilerArgs = listOf(
"-Xjvm-default=all", // For generating default methods in interfaces
// "-Xcontext-receivers"
Expand Down
4 changes: 4 additions & 0 deletions cdn-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ dependencies {
testImplementation("org.yaml:snakeyaml:1.33")
testImplementation("com.google.code.gson:gson:2.10.1")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.14.0")
}

kotlin {
jvmToolchain(8)
}

0 comments on commit e4b4555

Please sign in to comment.