build.gradle.kts 981 B

1234567891011121314151617181920212223242526
  1. plugins {
  2. id("otel.bom-conventions")
  3. }
  4. description = "OpenTelemetry Instrumentation Bill of Materials (Alpha)"
  5. group = "io.opentelemetry.instrumentation"
  6. base.archivesName.set("opentelemetry-instrumentation-bom-alpha")
  7. javaPlatform {
  8. allowDependencies()
  9. }
  10. dependencies {
  11. api(platform("io.opentelemetry:opentelemetry-bom"))
  12. api(platform("io.opentelemetry:opentelemetry-bom-alpha"))
  13. api(platform(project(":bom")))
  14. // Get the semconv version from :dependencyManagement
  15. val semconvConstraint = project(":dependencyManagement").dependencyProject.configurations["api"].allDependencyConstraints
  16. .find { it.group.equals("io.opentelemetry.semconv")
  17. && it.name.equals("opentelemetry-semconv") }
  18. ?: throw Exception("semconv constraint not found")
  19. otelBom.addExtra(semconvConstraint.group, semconvConstraint.name, semconvConstraint.version ?: throw Exception("missing version"))
  20. }
  21. otelBom.projectFilter.set { it.findProperty("otel.stable") != "true" }