Skip to content

Commit 2aa1eb2

Browse files
authored
Metrics are alpha take 2 (open-telemetry#2329)
* omit metrics artifacts (alpha) from the bill of materials (bom) * Hack the version number for maven publications that end in -metrics. * Remove the failed attempt.
1 parent 17fa4e9 commit 2aa1eb2

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

api/metrics/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ plugins {
66
id "ru.vyarus.animalsniffer"
77
}
88

9-
version = "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch ->
10-
"${major}.${minor}.${patch}-alpha"
11-
}
12-
139
description = 'OpenTelemetry API'
1410
ext.moduleName = "io.opentelemetry.api.metrics"
1511

bom/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies {
1111
parent.childProjects.sort { "$it.value" }
1212
.collect { it.value }
1313
.findAll { it.name != project.name }
14+
.findAll { !it.name.endsWith('-metrics') }
1415
.each { project ->
1516
api project
1617
println project

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,9 @@ subprojects {
432432
publishing {
433433
publications {
434434
mavenPublication(MavenPublication) {
435-
version version
435+
version project.name.endsWith('-metrics') ? "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch ->
436+
"${major}.${minor}.${patch}-alpha"
437+
} : version
436438
groupId group
437439

438440
plugins.withId("java-platform") {

sdk/metrics/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ plugins {
66
id "ru.vyarus.animalsniffer"
77
}
88

9-
version = "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch ->
10-
"${major}.${minor}.${patch}-alpha"
11-
}
12-
139
description = 'OpenTelemetry SDK Metrics'
1410
ext.moduleName = "io.opentelemetry.sdk.metrics"
1511
ext.propertiesDir = "build/generated/properties/io/opentelemetry/sdk/metrics"

0 commit comments

Comments
 (0)