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
25 changes: 25 additions & 0 deletions dd-java-agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,31 @@ def generalShadowJarConfig(ShadowJar shadowJarTask) {
exclude '**/io/airlift/compress/snappy/**'
relocate 'io.airlift', 'datadog.io.airlift'

// Minimize JNA, removing native libraries for unsupported environments
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: I suggest pointing to our doc so it's easier to see why these were disabled.

Suggested change
// Minimize JNA, removing native libraries for unsupported environments
// Minimize JNA, removing native libraries for unsupported environments
// https://datadoghq.atlassian.net/wiki/x/fhHuVgE

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not included on purpose to not share / disclose internal document link.
You can find from the PR description I did not set link on purpose.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such links are already there on this project or other public projects, either in code or issue/pull comments. Also the link url is hidden.

exclude '**/com/sun/jna/aix-*/**'
exclude '**/com/sun/jna/freebsd-*/**'
exclude '**/com/sun/jna/linux-armel/**'
exclude '**/com/sun/jna/linux-mips64el/**'
exclude '**/com/sun/jna/linux-ppc/**'
exclude '**/com/sun/jna/linux-ppc64le/**'
exclude '**/com/sun/jna/linux-riscv64/**'
exclude '**/com/sun/jna/linux-s390x/**'
exclude '**/com/sun/jna/openbsd-*/**'
exclude '**/com/sun/jna/sunos-*/**'

// Minimize JFFI, removing native libraries for unsupported environments
exclude '**/jni/*-AIX/**'
exclude '**/jni/*-DragonFlyBSD/**'
exclude '**/jni/*-FreeBSD/**'
exclude '**/jni/loongarch64-Linux/**'
exclude '**/jni/mips64el-Linux/**'
exclude '**/jni/ppc64-Linux/**'
exclude '**/jni/ppc64le-Linux/**'
exclude '**/jni/s390x-Linux/**'
exclude '**/jni/sparcv9-Linux/**'
exclude '**/jni/*-OpenBSD/**'
exclude '**/jni/*-SunOS/**'

final String projectName = "${project.name}"

// Prevents conflict with other instances, but doesn't relocate instrumentation
Expand Down
Loading