File tree 1 file changed +9
-9
lines changed
smoke-tests/images/quarkus
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ dependencies {
20
20
implementation(" io.quarkus:quarkus-rest" )
21
21
}
22
22
23
- quarkus {
24
- // Expected by jib extension.
25
- // TODO(anuraaga): Switch to quarkus plugin native jib support.
26
- setFinalName(" opentelemetry-quarkus-$version " )
27
- }
28
-
29
23
// Quarkus 3.7+ requires Java 17+
30
24
val targetJDK = project.findProperty(" targetJDK" ) ? : " 17"
31
25
@@ -34,10 +28,10 @@ val tag = findProperty("tag")
34
28
35
29
java {
36
30
// this is needed to avoid jib failing with
37
- // "Your project is using Java 17 but the base image is for Java 8 "
31
+ // "Your project is using Java 21 but the base image is for Java 17 "
38
32
// (it seems the jib plugins does not understand toolchains yet)
39
- sourceCompatibility = JavaVersion .VERSION_1_8
40
- targetCompatibility = JavaVersion .VERSION_1_8
33
+ sourceCompatibility = JavaVersion .VERSION_17
34
+ targetCompatibility = JavaVersion .VERSION_17
41
35
}
42
36
43
37
jib {
46
40
container {
47
41
mainClass = " bogus" // to suppress Jib warning about missing main class
48
42
}
43
+ pluginExtensions {
44
+ pluginExtension {
45
+ implementation = " com.google.cloud.tools.jib.gradle.extension.quarkus.JibQuarkusExtension"
46
+ properties = mapOf (" packageType" to " fast-jar" )
47
+ }
48
+ }
49
49
}
50
50
51
51
tasks {
You can’t perform that action at this time.
0 commit comments