Skip to content

Commit 56f708d

Browse files
committed
exclude jadx-core transitive deps from release jar
1 parent bbe45c1 commit 56f708d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

build.gradle.kts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ plugins {
77
}
88

99
dependencies {
10-
implementation("io.github.skylot:jadx-core:1.5.0-SNAPSHOT") {
10+
// use compile only scope to exclude jadx-core and its dependencies from result jar
11+
compileOnly("io.github.skylot:jadx-core:1.5.0-SNAPSHOT") {
1112
isChanging = true
1213
}
1314

@@ -16,7 +17,7 @@ dependencies {
1617
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
1718
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.3")
1819

19-
testRuntimeOnly("io.github.skylot:jadx-smali-input:1.5.0-SNAPSHOT") {
20+
testImplementation("io.github.skylot:jadx-smali-input:1.5.0-SNAPSHOT") {
2021
isChanging = true
2122
}
2223
}
@@ -39,11 +40,7 @@ tasks {
3940
useJUnitPlatform()
4041
}
4142
val shadowJar = withType(ShadowJar::class) {
42-
archiveClassifier.set("")
43-
dependencies {
44-
// jadx-core can be safely excluded from result jar
45-
exclude(dependency("io.github.skylot:jadx-core"))
46-
}
43+
archiveClassifier.set("") // remove '-all' suffix
4744
}
4845

4946
// copy result jar into "build/dist" directory

0 commit comments

Comments
 (0)