Remove pom dependencies for shadow artifacts.
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -54,5 +54,5 @@ jobs:
-PbintrayUser=${BINTRAY_USER} \
-PbintrayApiKey=${BINTRAY_API_KEY} \
-PbuildInfo.build.number=${CIRCLE_BUILD_NUM} \
- artifactoryPublish
+ artifactoryPublish --max-workers=1
fi

MODIFY
dd-java-agent/dd-java-agent.gradle
dd-java-agent/dd-java-agent.gradle
@@ -117,3 +117,8 @@ shadowJar {
exclude(dependency('org.projectlombok:lombok:1.16.18'))
}
}
+
+// We don't want bundled dependencies to show up in the pom.
+modifyPom {
+ dependencies.removeAll { true }
+}

MODIFY
dd-trace/dd-trace.gradle
dd-trace/dd-trace.gradle
@@ -24,17 +24,22 @@ dependencies {
compile group: 'io.opentracing', name: 'opentracing-noop', version: '0.30.0'
compile group: 'io.opentracing', name: 'opentracing-util', version: '0.30.0'
compile group: 'io.opentracing.contrib', name: 'opentracing-tracerresolver', version: '0.1.0'
+
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.8.8'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'com.google.auto.service', name: 'auto-service', version: '1.0-rc3'
+
+ testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
+
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.6.2'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.7.22'
- testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
+
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.4'
testCompile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.4'
testCompile group: 'io.ratpack', name: 'ratpack-groovy-test', version: '1.4.6'
+
jmh 'commons-io:commons-io:2.4'
}
@@ -50,9 +55,6 @@ shadowJar {
// Don't relocate slf4j or opentracing deps.
relocate 'com.fasterxml', 'dd.deps.com.fasterxml'
relocate 'com.google', 'dd.deps.com.google'
- relocate 'javassist', 'dd.deps.javassist'
- relocate 'org.jboss.byteman', 'dd.deps.org.jboss.byteman'
- relocate 'org.reflections', 'dd.deps.org.reflections'
relocate 'org.yaml', 'dd.deps.org.yaml'
dependencies {
@@ -60,6 +62,11 @@ shadowJar {
}
}
+// We don't want bundled dependencies to show up in the pom.
+modifyPom {
+ dependencies.removeAll { true }
+}
+
jmh {
timeUnit = 'us' // Output time unit. Available time units are: [m, s, ms, us, ns].
benchmarkMode = ['thrpt', 'avgt']

Remove pom dependencies for shadow artifacts.