diff --git a/build.gradle.kts b/build.gradle.kts index 32735170..68933704 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -55,6 +55,7 @@ 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/otel-extensions/build.gradle.kts b/otel-extensions/build.gradle.kts index 14f17629..26a75a0a 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") { + implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling:${versions["opentelemetry_java_agent-tooling"]}") { constraints { - implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling-java9") { + implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling-java9:${versions["opentelemetry_java_agent-tooling"]}") { 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