Skip to content

Commit f0d7c97

Browse files
committed
try
1 parent 1990a58 commit f0d7c97

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

smoke-tests/images/quarkus/build.gradle.kts

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ val targetJDK = project.findProperty("targetJDK") ?: "17"
2626
val tag = findProperty("tag")
2727
?: DateTimeFormatter.ofPattern("yyyyMMdd.HHmmSS").format(LocalDateTime.now())
2828

29+
java {
30+
// this is needed to avoid jib failing with
31+
// "Your project is using Java 21 but the base image is for Java 17"
32+
// (it seems the jib plugins does not understand toolchains yet)
33+
sourceCompatibility = JavaVersion.VERSION_17
34+
targetCompatibility = JavaVersion.VERSION_17
35+
}
36+
2937
jib {
3038
from.image = "eclipse-temurin:$targetJDK"
3139
to.image = "ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-quarkus:jdk$targetJDK-$tag"

0 commit comments

Comments
 (0)