Skip to content

Commit efaf8a0

Browse files
committed
fix: Use config lazy API
1 parent ee5a7ed commit efaf8a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dd-java-agent/testing/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ tasks.named("shadowJar", ShadowJar) {
7676
// Remove the regular jar from api elements and use shadow jar instead
7777
// Also exclude jetty from being exposed as a transitive dependency (it's bundled in the shadow jar)
7878
configurations {
79-
apiElements {
79+
named('apiElements') {
8080
outgoing.artifacts.clear()
81-
outgoing.artifact(tasks.shadowJar)
81+
outgoing.artifact(tasks.named('shadowJar'))
8282
exclude group: 'org.eclipse.jetty'
8383
}
84-
runtimeElements {
84+
named('runtimeElements') {
8585
outgoing.artifacts.clear()
86-
outgoing.artifact(tasks.shadowJar)
86+
outgoing.artifact(tasks.named('shadowJar'))
8787
exclude group: 'org.eclipse.jetty'
8888
}
8989
}

0 commit comments

Comments
 (0)