Skip to content

Commit 6c2b27c

Browse files
Copilotfeoh
andauthored
Fix Android build: align JVM target compatibility for all subprojects
Agent-Logs-Url: https://github.com/feoh/linkdqueue/sessions/ab661bd1-57c5-48ae-adcd-dedbcb3a3549 Co-authored-by: feoh <330070+feoh@users.noreply.github.com>
1 parent 57e6b21 commit 6c2b27c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

android/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ subprojects {
1919
project.evaluationDependsOn(":app")
2020
}
2121

22+
subprojects {
23+
afterEvaluate {
24+
extensions.findByType<com.android.build.gradle.BaseExtension>()?.apply {
25+
compileOptions {
26+
sourceCompatibility = JavaVersion.VERSION_17
27+
targetCompatibility = JavaVersion.VERSION_17
28+
}
29+
}
30+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
31+
kotlinOptions {
32+
jvmTarget = "17"
33+
}
34+
}
35+
}
36+
}
37+
2238
tasks.register<Delete>("clean") {
2339
delete(rootProject.layout.buildDirectory)
2440
}

0 commit comments

Comments
 (0)