Skip to content

Commit 48266f4

Browse files
authored
fix: lower JVM target to Java 11 (#648)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
1 parent 56f4fce commit 48266f4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tooling/plugins/src/main/kotlin/org/mobilenativefoundation/store/tooling/plugins/AndroidConventionPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class AndroidConventionPlugin : Plugin<Project> {
3939
}
4040

4141
compileOptions {
42-
sourceCompatibility = JavaVersion.VERSION_17
43-
targetCompatibility = JavaVersion.VERSION_17
42+
sourceCompatibility = JavaVersion.VERSION_11
43+
targetCompatibility = JavaVersion.VERSION_11
4444
}
4545
}
4646

tooling/plugins/src/main/kotlin/org/mobilenativefoundation/store/tooling/plugins/KotlinMultiplatformConventionPlugin.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class KotlinMultiplatformConventionPlugin : Plugin<Project> {
6161
nodejs()
6262
}
6363

64-
jvmToolchain(17)
64+
jvmToolchain(11)
6565

6666
targets.all {
6767
compilations.all {
@@ -135,7 +135,7 @@ fun Project.configureKotlin() {
135135
fun Project.configureJava() {
136136
java {
137137
toolchain {
138-
languageVersion.set(JavaLanguageVersion.of(17))
138+
languageVersion.set(JavaLanguageVersion.of(11))
139139
}
140140
}
141141
}
@@ -156,8 +156,8 @@ fun Project.configureAndroid() {
156156
}
157157

158158
compileOptions {
159-
sourceCompatibility = JavaVersion.VERSION_17
160-
targetCompatibility = JavaVersion.VERSION_17
159+
sourceCompatibility = JavaVersion.VERSION_11
160+
targetCompatibility = JavaVersion.VERSION_11
161161
}
162162
}
163163
}
@@ -218,12 +218,12 @@ fun Project.configureDokka() = tasks.withType<DokkaTask>().configureEach {
218218
dokkaSourceSets.configureEach {
219219
reportUndocumented.set(false)
220220
skipDeprecated.set(true)
221-
jdkVersion.set(17)
221+
jdkVersion.set(11)
222222
}
223223
}
224224

225225
fun Project.android(name: String) {
226226
android {
227227
namespace = "org.mobilenativefoundation.store.$name"
228228
}
229-
}
229+
}

0 commit comments

Comments
 (0)