Skip to content

Commit 1e759f7

Browse files
authored
Fix duplicate class entries in instrumentedJar that block plugin publishin (palantir#1714)
Fix duplicate class entries in `instrumentedJar` that block plugin publishin
1 parent 1f2fe56 commit 1e759f7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎idea-plugin/build.gradle‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,11 @@ dependencies {
7575
tasks.named("javadoc", Javadoc) {
7676
failOnError = false
7777
}
78+
79+
// Prevent duplicate class entries in the instrumentedJar, which the JetBrains marketplace rejects.
80+
// The jar task's duplicatesStrategy is overridden from INHERIT to WARN. The instrumentedJar task
81+
// uses with(jarTask) to include the jar's CopySpec, so it picks up WARN and allows duplicates through.
82+
// Setting EXCLUDE here on the jar task propagates into instrumentedJar via that with(jarTask) call.
83+
tasks.named('jar') {
84+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
85+
}

0 commit comments

Comments
 (0)