opentelemetry-java-instrume.../bom-alpha/bom-alpha.gradle

43 lines
998 B
Groovy

plugins {
id("java-platform")
}
apply plugin: "otel.publish-conventions"
description = "OpenTelemetry Instrumentation Bill of Materials (Alpha)"
group = "io.opentelemetry.instrumentation"
archivesBaseName = "opentelemetry-instrumentation-bom-alpha"
rootProject.subprojects.forEach { subproject ->
if (!subproject.name.startsWith("bom")) {
evaluationDependsOn(subproject.path)
}
}
javaPlatform {
allowDependencies()
}
def otelVersion = findProperty("otelVersion")
dependencies {
api(platform("io.opentelemetry:opentelemetry-bom:${otelVersion}"))
api(platform("io.opentelemetry:opentelemetry-bom-alpha:${otelVersion}-alpha"))
}
afterEvaluate {
dependencies {
constraints {
rootProject.subprojects.sort { "$it.archivesBaseName" }
.collect { it }
.findAll { it.name != project.name && it.name != 'javaagent'}
.forEach { project ->
project.plugins.withId("maven-publish") {
api(project)
}
}
}
}
}