diff --git a/build.gradle.kts b/build.gradle.kts index 68933704..32735170 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -55,7 +55,6 @@ subprojects { // when updating these values, some values must also be updated in buildSrc as this map // cannot be accessed there "opentelemetry_proto" to "0.11.0-alpha", - "opentelemetry_java_agent-tooling" to "1.32.0-alpha", "opentelemetry_instrumentation_bom_alpha" to "1.32.0-alpha", "opentelemetry_gradle_plugin" to "1.32.0-alpha", diff --git a/instrumentation/servlet/servlet-3.0/build.gradle.kts b/instrumentation/servlet/servlet-3.0/build.gradle.kts index d2379377..4016f31f 100644 --- a/instrumentation/servlet/servlet-3.0/build.gradle.kts +++ b/instrumentation/servlet/servlet-3.0/build.gradle.kts @@ -31,7 +31,7 @@ afterEvaluate{ val versions: Map by extra dependencies { - implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${versions["opentelemetry_instrumentation_bom_alpha"]}")) + api(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${versions["opentelemetry_instrumentation_bom_alpha"]}")) implementation("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-servlet-common") implementation("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-servlet-3.0") // Servlet3Accessor testImplementation("io.opentelemetry.javaagent.instrumentation:opentelemetry-javaagent-servlet-3.0") diff --git a/otel-extensions/build.gradle.kts b/otel-extensions/build.gradle.kts index 26a75a0a..14f17629 100644 --- a/otel-extensions/build.gradle.kts +++ b/otel-extensions/build.gradle.kts @@ -37,9 +37,9 @@ dependencies { implementation("io.opentelemetry.semconv:opentelemetry-semconv") implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api") implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api") - implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling:${versions["opentelemetry_java_agent-tooling"]}") { + implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling") { constraints { - implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling-java9:${versions["opentelemetry_java_agent-tooling"]}") { + implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling-java9") { attributes { // this transitive dependency creates classes compatible with Java 9 and up, but is only referenced in safe ways for // java 8 by the javaagent-tooling dependency