Remove evaluation dependencies for bom project.
@@ -8,12 +8,6 @@ description = "OpenTelemetry Instrumentation Bill of Materials (Alpha)"
group = "io.opentelemetry.instrumentation"
base.archivesName.set("opentelemetry-instrumentation-bom-alpha")
-for (subproject in rootProject.subprojects) {
- if (!subproject.name.startsWith("bom")) {
- evaluationDependsOn(subproject.path)
- }
-}
-
javaPlatform {
allowDependencies()
}
@@ -25,12 +19,11 @@ dependencies {
api(platform("io.opentelemetry:opentelemetry-bom-alpha:${otelVersion}-alpha"))
}
-afterEvaluate {
dependencies {
constraints {
- rootProject.subprojects
- .filter { it.name != project.name && it.name != "javaagent" }
- .forEach { proj ->
+ rootProject.subprojects {
+ val proj = this
+ if (!proj.name.startsWith("bom") && proj.name != "javaagent") {
proj.plugins.withId("maven-publish") {
api(proj)
}
