Skip to content

Commit 33c406b

Browse files
authored
refactor: declare instrumentation dependencies directly (#11986)
refactor: declare instrumentation dependencies directly Instrumentation project paths are already known during configuration. Wrapping `project(...)` in `providers.provider` adds unnecessary indirection without providing useful laziness. Declaring project dependencies directly makes the aggregation logic clearer and keeps compile-only stub projects out of the resulting JAR. # Conflicts: # dd-java-agent/instrumentation/build.gradle Co-authored-by: brice.dutheil <brice.dutheil@datadoghq.com>
1 parent 0fddfc4 commit 33c406b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

dd-java-agent/instrumentation/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ subprojects { Project subProj ->
9090
if (subProj.path != ':dd-java-agent:instrumentation:vertx:vertx-redis-client:vertx-redis-client-stubs'
9191
&& subProj.path != ':dd-java-agent:instrumentation:tibco-businessworks:tibco-businessworks-stubs') {
9292
// don't include the redis or tibco stubs
93-
parent_project.dependencies {
94-
addProvider("implementation", providers.provider { project(subProj.path) })
95-
}
93+
parent_project.dependencies.add(
94+
"implementation",
95+
parent_project.dependencies.project(path: subProj.path)
96+
)
9697
}
9798
}
9899

0 commit comments

Comments
 (0)