Skip to content

Commit

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

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

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

lint {
abortOnError = false
}
Expand Down
31 changes: 15 additions & 16 deletions 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(11)
jvmToolchain(17)
androidTarget { publishLibraryVariants("release") }
jvm("desktop")
iosX64()
Expand All @@ -52,6 +52,19 @@ kotlin {
macosX64()
macosArm64()

js {
browser()
nodejs {
testTask {
useMocha {
timeout = "60s"
}
}
}
binaries.executable()
binaries.library()
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser {
Expand Down Expand Up @@ -90,6 +103,7 @@ kotlin {
}
}
withJs()
withWasmJs()
}
}
}
Expand All @@ -104,19 +118,4 @@ 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.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false

# KMP
kotlin.mpp.androidGradlePluginCompatibility.nowarn=tru
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true

# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
Expand Down
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 = "11"
jvmTarget = "17"
nexusPlugin = "0.26.0"
kotlinxCoroutines = "1.7.2"
kotlinxTime = "0.4.0"
Expand Down

0 comments on commit bb8aa48

Please sign in to comment.