Skip to content

Commit

Permalink
Make serialization/{jvm/android} actually depend on the Android/JVM
Browse files Browse the repository at this point in the history
libraries at runtime.
  • Loading branch information
pdvrieze committed May 19, 2024
1 parent 0d431e7 commit 4a10b55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion serialization/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ kotlin {
}
}

val jvmMain by getting {}
val jvmMain by getting {
dependencies {
runtimeOnly(project(":core:jdk"))
}
}
val commonJvmTest by getting {
dependencies {
implementation(project(":core:jdk"))
Expand All @@ -166,6 +170,7 @@ kotlin {
val androidMain by getting {
dependencies {
compileOnly(libs.kxml2)
runtimeOnly(project(":core:android"))
api(project(":core:base")) {
attributes { attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm) }
}
Expand Down

0 comments on commit 4a10b55

Please sign in to comment.