From 9b95fc5e84f6224e9048831cbfa92fe669c137b9 Mon Sep 17 00:00:00 2001 From: Jason Plumb Date: Tue, 15 Dec 2020 14:43:25 -0800 Subject: [PATCH] inject alpha into the version for metrics api and sdk. --- api/metrics/build.gradle | 4 ++++ sdk/metrics/build.gradle | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/api/metrics/build.gradle b/api/metrics/build.gradle index c78ee786ed4..cbac2996e65 100644 --- a/api/metrics/build.gradle +++ b/api/metrics/build.gradle @@ -6,6 +6,10 @@ plugins { id "ru.vyarus.animalsniffer" } +version = "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch -> + "${major}.${minor}.${patch}-alpha" +} + description = 'OpenTelemetry API' ext.moduleName = "io.opentelemetry.api.metrics" diff --git a/sdk/metrics/build.gradle b/sdk/metrics/build.gradle index deeb132224a..e7b58c7fd95 100644 --- a/sdk/metrics/build.gradle +++ b/sdk/metrics/build.gradle @@ -6,6 +6,10 @@ plugins { id "ru.vyarus.animalsniffer" } +version = "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch -> + "${major}.${minor}.${patch}-alpha" +} + description = 'OpenTelemetry SDK Metrics' ext.moduleName = "io.opentelemetry.sdk.metrics" ext.propertiesDir = "build/generated/properties/io/opentelemetry/sdk/metrics"