diff --git a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile index 638ac796..666ec16a 100644 --- a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile +++ b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:17-slim WORKDIR /app -COPY build/libs/opentelemetry-javaagent-2.6.0.jar /app/opentelemetry-javaagent.jar -COPY build/libs/opentelemetry-exporter-otlp-1.40.0.jar /app/opentelemetry-exporter-otlp.jar +COPY build/libs/opentelemetry-javaagent.jar /app/opentelemetry-javaagent.jar +COPY build/libs/opentelemetry-exporter-otlp.jar /app/opentelemetry-exporter-otlp.jar COPY build/libs/connector.jar /app/connector.jar diff --git a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts index 6f431789..8f66bec3 100644 --- a/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts +++ b/advanced/advanced-01-open-telemetry/open-telemetry-runtime/build.gradle.kts @@ -74,6 +74,7 @@ tasks.register("copyOpenTelemetryJar", Copy::class) { from(openTelemetry) into("build/libs") + rename { it -> it.substring(0, it.indexOfLast { it == '-' }) + ".jar"} } tasks.build {