Skip to content

Commit

Permalink
clean up shadowJar config
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 13, 2023
1 parent cde613d commit bfc76a8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bfc76a8

Please sign in to comment.