Fix groups / base name for javaagent artifacts
MODIFY
gradle/java.gradle
gradle/java.gradle
@@ -10,7 +10,8 @@ apply from: "$rootDir/gradle/codenarc.gradle"
apply from: "$rootDir/gradle/spotbugs.gradle"
afterEvaluate {
- if (group == 'io.opentelemetry.instrumentation.auto' || findProperty('mavenGroupId') == 'io.opentelemetry.instrumentation.auto') {
+ if (!archivesBaseName.startsWith('javaagent') &&
+ (group == 'io.opentelemetry.instrumentation.auto' || findProperty('mavenGroupId') == 'io.opentelemetry.instrumentation.auto')) {
archivesBaseName = 'opentelemetry-auto-' + archivesBaseName
} else {
archivesBaseName = 'opentelemetry-' + archivesBaseName

MODIFY
javaagent-bootstrap/javaagent-bootstrap.gradle
javaagent-bootstrap/javaagent-bootstrap.gradle
-group = 'io.opentelemetry.javaagent'
-
apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"

MODIFY
javaagent-tooling/javaagent-tooling.gradle
javaagent-tooling/javaagent-tooling.gradle
-group = 'io.opentelemetry.javaagent'
-
apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"

MODIFY
javaagent/javaagent.gradle
javaagent/javaagent.gradle
@@ -5,7 +5,6 @@ plugins {
}
description = 'OpenTelemetry Javaagent'
-group = 'io.opentelemetry.javaagent'
apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"

Fix groups / base name for javaagent artifacts (#1173)