Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dd-java-agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ def includeShadowJar(TaskProvider<ShadowJar> shadowJarTask, String jarname) {
rename '(^.*)\\.class$', '$1.classdata'
// Rename LICENSE file since it clashes with license dir on non-case sensitive FSs (i.e. Mac)
rename '^LICENSE$', 'LICENSE.renamed'
if (jarname == 'inst') {
// byte-buddy now ships classes optimized for Java8+ under META-INF/versions/9
// since we target Java8+ we can promote these classes over the pre-Java8 ones
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
eachFile {
if (it.path.contains('META-INF/versions/9/net/bytebuddy')) {
it.path = it.path.replace('META-INF/versions/9/', '')
}
}
}
}
}

Expand Down
Loading