Skip to content

Commit b8a928f

Browse files
committed
Make jnr-unixsocket an explicit dependency of dd-trace-ot
1 parent 65e472f commit b8a928f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

dd-trace-ot/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ dependencies {
4848
api group: 'io.opentracing.contrib', name: 'opentracing-tracerresolver', version: '0.1.6'
4949

5050
api libs.slf4j
51+
api libs.jnr.unixsocket
52+
5153
implementation project(':dd-trace-ot:correlation-id-injection')
5254

5355
testImplementation project(":dd-java-agent:testing")
@@ -96,16 +98,15 @@ shadowJar {
9698
exclude(dependency('io.opentracing:'))
9799
exclude(dependency('io.opentracing.contrib:'))
98100
exclude(dependency('org.slf4j:'))
101+
exclude(dependency('com.github.jnr:'))
99102
}
100103

101104
relocate('com.', 'ddtrot.com.') {
102-
// don't relocate native methods
103-
exclude('com.kenai.jffi.*')
104-
exclude('com.kenai.jffi.internal.*')
105+
// leave our PatchInit class shaded even though its not used in this deployment
106+
// unfortunately the shadow plugin doesn't let us completely remove this class
107+
exclude('%regex[com/kenai/jffi/(?!PatchInit)[^/]*]')
105108
}
106109
relocate('dogstatsd/', 'ddtrot/dogstatsd/')
107-
relocate('jni/', 'ddtrot/jni/')
108-
relocate('jnr/', 'ddtrot/jnr/')
109110
relocate('okhttp3.', 'ddtrot.okhttp3.')
110111
relocate('okio.', 'ddtrot.okio.')
111112
relocate('org.', 'ddtrot.org.') {

test-published-dependencies/ot-is-shaded/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ tasks.register('checkJarContents', CheckJarContentsTask) {
9191
'^[^/]*\\.version$',
9292
'^DDSketch.proto$',
9393
'^META-INF/.*$',
94-
'^com/$',
95-
'^com/kenai/$',
96-
'^com/kenai/jffi/.*$',
9794
'^datadog/.*$',
9895
'^ddtrot/.*$'
9996
]

0 commit comments

Comments
 (0)