Skip to content

Commit

Permalink
jvmToolchain(8)
Browse files Browse the repository at this point in the history
  • Loading branch information
zj565061763 committed Aug 30, 2023
1 parent 528f576 commit 8d393e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
12 changes: 4 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

buildFeatures {
compose = true
}
Expand All @@ -42,6 +34,10 @@ android {
}
}

kotlin {
jvmToolchain(8)
}

dependencies {
val composeBom = platform(libs.androidx.compose.bom)
implementation(composeBom)
Expand Down
9 changes: 4 additions & 5 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ android {
minSdk = libs.versions.androidMinSdk.get().toInt()
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
freeCompilerArgs += "-module-name=$libGroupId.$libArtifactId"
}

Expand All @@ -38,6 +33,10 @@ android {
}
}

kotlin {
jvmToolchain(8)
}

dependencies {
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.compose.foundation)
Expand Down

0 comments on commit 8d393e9

Please sign in to comment.