|
@@ -14,6 +14,13 @@ dependencies {
|
|
|
api(platform("io.opentelemetry:opentelemetry-bom"))
|
|
|
api(platform("io.opentelemetry:opentelemetry-bom-alpha"))
|
|
|
api(platform(project(":bom")))
|
|
|
+
|
|
|
+ // Get the semconv version from :dependencyManagement
|
|
|
+ val semconvConstraint = project(":dependencyManagement").dependencyProject.configurations["api"].allDependencyConstraints
|
|
|
+ .find { it.group.equals("io.opentelemetry.semconv")
|
|
|
+ && it.name.equals("opentelemetry-semconv") }
|
|
|
+ ?: throw Exception("semconv constraint not found")
|
|
|
+ otelBom.addExtra(semconvConstraint.group, semconvConstraint.name, semconvConstraint.version ?: throw Exception("missing version"))
|
|
|
}
|
|
|
|
|
|
otelBom.projectFilter.set { it.findProperty("otel.stable") != "true" }
|