Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bom-alpha/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ javaPlatform {
allowDependencies()
}

// Need this since we access :dependencyManagement configurations below
evaluationDependsOn(":dependencyManagement")

dependencies {
api(platform("io.opentelemetry:opentelemetry-bom"))
api(platform("io.opentelemetry:opentelemetry-bom-alpha"))
Expand Down
3 changes: 3 additions & 0 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ javaPlatform {
allowDependencies()
}

// Need this since we access :dependencyManagement configurations below
evaluationDependsOn(":dependencyManagement")

dependencies {
api(platform("io.opentelemetry:opentelemetry-bom"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ if (!project.name.startsWith("bom")) {
throw IllegalStateException("Name of BOM projects must start with 'bom'.")
}

// Force evaluation of all non-BOM subprojects so that we can filter them by plugin
// and add them as dependency constraints below
rootProject.subprojects.forEach { subproject ->
if (!subproject.name.startsWith("bom")) {
evaluationDependsOn(subproject.path)
}
}

val otelBom = extensions.create<OtelBomExtension>("otelBom")

afterEvaluate {
Expand Down Expand Up @@ -41,7 +44,6 @@ afterEvaluate {
}

// this applies version numbers to the SDK bom and SDK alpha bom which are dependencies of the instrumentation boms
evaluationDependsOn(":dependencyManagement")
val dependencyManagementConf = configurations.create("dependencyManagement") {
isCanBeConsumed = false
isCanBeResolved = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ afterEvaluate {
}
}

evaluationDependsOn(":dependencyManagement")
val dependencyManagementConf = configurations.create("dependencyManagement") {
isCanBeConsumed = false
isCanBeResolved = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ plugins {
id("otel.java-conventions")
}

evaluationDependsOn(":testing:agent-for-testing")

dependencies {
annotationProcessor("com.google.auto.service:auto-service")
compileOnly("com.google.auto.service:auto-service")
Expand Down
Loading