build.gradle.kts 744 B

123456789101112131415161718192021222324252627282930313233
  1. plugins {
  2. id("java-platform")
  3. id("otel.publish-conventions")
  4. }
  5. description = "OpenTelemetry Instrumentation Bill of Materials (Alpha)"
  6. group = "io.opentelemetry.instrumentation"
  7. base.archivesName.set("opentelemetry-instrumentation-bom-alpha")
  8. javaPlatform {
  9. allowDependencies()
  10. }
  11. val otelVersion: String by project
  12. dependencies {
  13. api(platform("io.opentelemetry:opentelemetry-bom:${otelVersion}"))
  14. api(platform("io.opentelemetry:opentelemetry-bom-alpha:${otelVersion}-alpha"))
  15. }
  16. dependencies {
  17. constraints {
  18. rootProject.subprojects {
  19. val proj = this
  20. if (!proj.name.startsWith("bom") && proj.name != "javaagent") {
  21. proj.plugins.withId("maven-publish") {
  22. api(proj)
  23. }
  24. }
  25. }
  26. }
  27. }