Skip to content

Commit

Permalink
Configure Jvm 11
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Jun 5, 2024
1 parent bb8aa48 commit 63e415e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = libs.versions.jvmTarget.get()
}

lint {
abortOnError = false
}
Expand Down
17 changes: 16 additions & 1 deletion compose-stable-marker/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mavenPublishing {
}

kotlin {
jvmToolchain(17)
jvmToolchain(11)
androidTarget { publishLibraryVariants("release") }
jvm("desktop")
iosX64()
Expand Down Expand Up @@ -118,4 +118,19 @@ android {
defaultConfig {
minSdk = Configurations.minSdk
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}

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

tasks.withType(JavaCompile::class.java).configureEach {
this.targetCompatibility = JavaVersion.VERSION_11.toString()
this.sourceCompatibility = JavaVersion.VERSION_11.toString()
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin = "2.0.0"
dokka = "1.9.10"
jvmTarget = "17"
jvmTarget = "11"
nexusPlugin = "0.26.0"
kotlinxCoroutines = "1.7.2"
kotlinxTime = "0.4.0"
Expand Down

0 comments on commit 63e415e

Please sign in to comment.