Skip to content

Commit

Permalink
Use jdk 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Oct 1, 2023
1 parent 28fbb9d commit 53a6330
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ tasks.withType<Test> {
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = libs.versions.jvm.get()
kotlinOptions.jvmTarget = "1.8"
}

java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}

repositories {
Expand Down
10 changes: 10 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.gradle.kotlin.dsl.`kotlin-dsl`
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

repositories {
gradlePluginPortal()
Expand All @@ -7,3 +8,12 @@ repositories {
plugins {
`kotlin-dsl`
}

java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

0 comments on commit 53a6330

Please sign in to comment.