Skip to content

Commit

Permalink
fix: lower JVM target to Java 11 (#648)
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
  • Loading branch information
msfjarvis authored Jul 7, 2024
1 parent 56f4fce commit 48266f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class AndroidConventionPlugin : Plugin<Project> {
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class KotlinMultiplatformConventionPlugin : Plugin<Project> {
nodejs()
}

jvmToolchain(17)
jvmToolchain(11)

targets.all {
compilations.all {
Expand Down Expand Up @@ -135,7 +135,7 @@ fun Project.configureKotlin() {
fun Project.configureJava() {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(11))
}
}
}
Expand All @@ -156,8 +156,8 @@ fun Project.configureAndroid() {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
}
Expand Down Expand Up @@ -218,12 +218,12 @@ fun Project.configureDokka() = tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
reportUndocumented.set(false)
skipDeprecated.set(true)
jdkVersion.set(17)
jdkVersion.set(11)
}
}

fun Project.android(name: String) {
android {
namespace = "org.mobilenativefoundation.store.$name"
}
}
}

0 comments on commit 48266f4

Please sign in to comment.