Skip to content

Commit cf29de3

Browse files
author
Copilot
committed
refactor: drop unused parent-project registration
Nothing in the build references project(":instrumentation") as a dependency, and ./gradlew test/build already recurses into all subprojects. The aggregator hook was redundant.
1 parent 08cd8f7 commit cf29de3

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

examples/distro/buildSrc/src/main/kotlin/otel.instrumentation-conventions.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,3 @@ class JavaagentProvider(
8383
) : CommandLineArgumentProvider {
8484
override fun asArguments(): Iterable<String> = listOf("-javaagent:${agentJar.get().absolutePath}")
8585
}
86-
87-
// Register this instrumentation module with the :instrumentation aggregator project
88-
// so that ":instrumentation:test" and ":instrumentation:assemble" pull in every
89-
// instrumentation module without an explicit subprojects {} block.
90-
project.parent?.let { parent ->
91-
parent.tasks.named("test").configure {
92-
dependsOn(tasks.named("test"))
93-
}
94-
parent.dependencies.add("implementation", project)
95-
}

0 commit comments

Comments
 (0)