Skip to content

Commit

Permalink
Fix gradle config to ensure java 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Sep 16, 2024
1 parent b2f847a commit 673e956
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ val androidMinSDK : String by project
android {
namespace = "org.koin.androidx.compose.navigation"
compileSdk = androidCompileSDK.toInt()
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
defaultConfig {
minSdk = androidMinSDK.toInt()
Expand Down
5 changes: 1 addition & 4 deletions projects/compose/koin-androidx-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ val androidMinSDK : String by project
android {
namespace = "org.koin.androidx.compose"
compileSdk = androidCompileSDK.toInt()
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
defaultConfig {
minSdk = androidMinSDK.toInt()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ kotlin {
}

tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "11"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}

Expand Down
4 changes: 2 additions & 2 deletions projects/compose/koin-compose-viewmodel/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ kotlin {
}

tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "11"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}

Expand Down
6 changes: 0 additions & 6 deletions projects/compose/koin-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ kotlin {
}
}

tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "11"
}
}

tasks.withType<KotlinCompile>().all {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
Expand Down
6 changes: 0 additions & 6 deletions projects/core/koin-core-viewmodel-navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ kotlin {
}
}

tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "11"
}
}

tasks.withType<KotlinCompile>().all {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
Expand Down
6 changes: 0 additions & 6 deletions projects/core/koin-core-viewmodel/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ kotlin {
}
}

tasks.withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = "11"
}
}

tasks.withType<KotlinCompile>().all {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
Expand Down

0 comments on commit 673e956

Please sign in to comment.