Skip to content

Commit 2e2afc1

Browse files
committed
PROPERLY build jar now
1 parent a1e5a14 commit 2e2afc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ val sourcesJar by tasks.registering(Jar::class) {
2424
}
2525

2626
tasks.jar {
27-
from(project(":common").sourceSets["main"].allSource)
28-
from(project(":lldevs").sourceSets["main"].allSource)
27+
dependsOn(project(":common").tasks.jar)
28+
dependsOn(project(":lldevs").tasks.jar)
29+
from(configurations.runtimeClasspath.get().map(::zipTree))
30+
duplicatesStrategy = DuplicatesStrategy.WARN
2931
}
3032

3133
publishing {

0 commit comments

Comments
 (0)