You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle.kts
+10-25Lines changed: 10 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -14,32 +14,7 @@ plugins {
14
14
id("otel.publish-conventions")
15
15
}
16
16
17
-
// Resolve protoVersion and releaseVersion
18
-
// If user provides property release.version.prop match against releaseVersionRegex. protoVersion is the semconv matching group (i.e. for release.version.prop=1.3.2.1, protoVersion is 1.3.2). releaseVersion is the value of the release.version.prop.
19
-
// Else, set protoVersion and releaseVersion to the most recent git tag.
20
-
// The releaseVersion is used to set the nebular release plugin release version. Note, the release.version.prop is used because the nebula release plugin verifies release.version matches semconv.
21
-
// The protoVersion is used to download sources from opentelemetry-proto..
22
-
var protoVersion ="unknown"
23
-
var releaseVersion ="unknown"
24
-
if (properties.contains("release.version.prop")) {
25
-
val releaseVersionProperty = properties.get("release.version.prop") asString
26
-
val matchResult ="^(?<protoversion>([0-9]*)\\.([0-9]*)\\.([0-9]*)).*\$".toRegex().matchEntire(releaseVersionProperty)
27
-
if (matchResult ==null) {
28
-
throwGradleException("Invalid value for release.version.prop")
0 commit comments