Skip to content

Commit

Permalink
Make commons and gson not transitve
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamebuster19901 committed Oct 28, 2024
1 parent 0beaee8 commit c7ef515
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ dependencies {
compileOnly group: 'org.ow2.asm', name: 'asm-tree', version: asmVersion
compileOnly group: 'org.ow2.asm', name: 'asm-util', version: asmVersion

implementation group: 'org.apache.commons', name: 'commons-lang3', version: commonsLangVersion
implementation group: 'com.google.code.gson', name: 'gson', version: '2.11.0'
implementation(group: 'org.apache.commons', name: 'commons-lang3', version: commonsLangVersion) {
transitive = false
}
implementation(group: 'com.google.code.gson', name: 'gson', version: '2.11.0') {
transitive = false
}
}

jar {
Expand All @@ -60,11 +64,11 @@ tasks.build {
}

tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
exclude '**/license.txt'
exclude '**/license'
exclude '**/notice.txt'
exclude '**/notice'
finalizedBy sourcesJar
exclude '**/license.txt'
exclude '**/license'
exclude '**/notice.txt'
exclude '**/notice'
finalizedBy sourcesJar
}

artifacts {
Expand Down

0 comments on commit c7ef515

Please sign in to comment.