From bdcda332e6b426f8bcd4fbf128de102b0adaa5ed Mon Sep 17 00:00:00 2001 From: James Fenn Date: Fri, 26 Jun 2020 10:13:59 -0400 Subject: [PATCH] move dependency exclusion to specific target --- gitrest/build.gradle | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/gitrest/build.gradle b/gitrest/build.gradle index cec2b84..54017c5 100644 --- a/gitrest/build.gradle +++ b/gitrest/build.gradle @@ -20,13 +20,6 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' - - configurations.all { - resolutionStrategy { - // excluding "-common" dependencies from Android to prevent duplicate META-INF bugs - exclude group: "org.jetbrains.kotlinx", module: "kotlinx-serialization-runtime-common" - } - } } sourceSets { @@ -117,7 +110,10 @@ kotlin { implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version" implementation "io.ktor:ktor-client-android:$ktor_version" implementation "io.ktor:ktor-client-json-jvm:$ktor_version" - implementation "io.ktor:ktor-client-serialization-jvm:$ktor_version" + implementation ("io.ktor:ktor-client-serialization-jvm:$ktor_version") { + // excluding "-common" dependencies from Android to prevent duplicate META-INF bugs + exclude group: "org.jetbrains.kotlinx", module: "kotlinx-serialization-runtime-common" + } } } androidTest { -- GitLab