We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 913ce1a commit 73c3288Copy full SHA for 73c3288
otelagent/build.gradle.kts
@@ -70,7 +70,15 @@ tasks {
70
attributes.put("Premain-Class", "software.amazon.opentelemetry.javaagent.bootstrap.AwsAgentBootstrap")
71
attributes.put("Can-Redefine-Classes", "true")
72
attributes.put("Can-Retransform-Classes", "true")
73
- attributes.put("Implementation-Version", project.version)
+
74
+ val versionString = project.version.toString()
75
+ val implementationVersion: String
76
+ if (versionString.endsWith("-SNAPSHOT")) {
77
+ implementationVersion = "${versionString.dropLast("-SNAPSHOT".length)}-aws-SNAPSHOT"
78
+ } else {
79
+ implementationVersion = "$versionString-aws"
80
+ }
81
+ attributes.put("Implementation-Version", implementationVersion)
82
}
83
84
0 commit comments