From bfc76a81f48ed3c9c423ab3e51c24eb44952b052 Mon Sep 17 00:00:00 2001 From: overcat <4catcode@gmail.com> Date: Wed, 13 Sep 2023 18:38:13 +0800 Subject: [PATCH] clean up shadowJar config --- build.gradle | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 5d124bf88..09dddb549 100644 --- a/build.gradle +++ b/build.gradle @@ -44,18 +44,12 @@ shadowJar { duplicatesStrategy DuplicatesStrategy.EXCLUDE archiveClassifier.set('') archiveFileName.set('stellar-sdk.jar') - relocate('com.', 'shadow.com.') { - // okhttp hardcodes android platform class loading to this package, shadowing would attempt to rewrite the hardcode - // to be 'shadow.com.android.org.conscrypt' which we don't want to happen. - exclude 'com.android.org.conscrypt' - } + relocate 'com.', 'shadow.com.' relocate 'net.', 'shadow.net.' + relocate 'org.', 'shadow.org.' relocate 'okhttp3', 'shadow.okhttp3' relocate 'okio', 'shadow.okio' relocate 'kotlin', 'shadow.kotlin' - relocate 'org.intellij', 'shadow.org.intellij' - relocate 'org.jetbrains', 'shadow.org.jetbrains' - relocate 'org.apache', 'shadow.org.apache' } repositories {