Skip to content

Commit 20839fd

Browse files
committed
chore: Fix indexer warning log, due to duplicate license files
For logs like ``` Detected duplicate content under 'META-INF.AL2.0'. Ensure your content is under a distinct directory. Detected duplicate content under 'META-INF.LGPL2.1'. Ensure your content is under a distinct directory. ```
1 parent 3e19ebd commit 20839fd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

dd-java-agent/cws-tls/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
import org.apache.maven.model.License
23

34
plugins {
45
id 'com.gradleup.shadow'
@@ -22,6 +23,10 @@ dependencies {
2223

2324
tasks.named("shadowJar", ShadowJar) {
2425
dependencies deps.excludeShared
25-
// exclude this since it's available in the instrumentation jar
26-
exclude 'com/sun/jna/**/*'
26+
27+
// exclude 'jna' this since it's available in the instrumentation jar
28+
dependencies {
29+
exclude(dependency("net.java.dev.jna:jna"))
30+
exclude(dependency("net.java.dev.jna:jna-platform"))
31+
}
2732
}

0 commit comments

Comments
 (0)