Skip to content

Commit 2b6b84d

Browse files
committed
fix: Use config lazy API
1 parent 0f91d4f commit 2b6b84d

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
@@ -79,14 +79,14 @@ tasks.named("shadowJar", ShadowJar) {
7979
// Remove the regular jar from api elements and use shadow jar instead
8080
// Also exclude jetty from being exposed as a transitive dependency (it's bundled in the shadow jar)
8181
configurations {
82-
apiElements {
82+
named('apiElements') {
8383
outgoing.artifacts.clear()
84-
outgoing.artifact(tasks.shadowJar)
84+
outgoing.artifact(tasks.named('shadowJar'))
8585
exclude group: 'org.eclipse.jetty'
8686
}
87-
runtimeElements {
87+
named('runtimeElements') {
8888
outgoing.artifacts.clear()
89-
outgoing.artifact(tasks.shadowJar)
89+
outgoing.artifact(tasks.named('shadowJar'))
9090
exclude group: 'org.eclipse.jetty'
9191
}
9292
}

0 commit comments

Comments
 (0)