Skip to content

Commit

Permalink
Update quarkus smoke test app (#12541)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Nov 1, 2024
1 parent 3b0e7b8 commit 692e5ab
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pr-smoke-test-quarkus-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ jobs:
with:
project: ":smoke-tests:images:quarkus"
cache-read-only: true
# Quarkus 2.0+ does not support Java 8
# Quarkus 3.7+ requires Java 17+
skip-java-8: true
skip-java-11: true
3 changes: 2 additions & 1 deletion .github/workflows/publish-smoke-test-quarkus-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
with:
project: ":smoke-tests:images:quarkus"
publish: true
# Quarkus 2.0+ does not support Java 8
# Quarkus 3.7+ requires Java 17+
skip-java-8: true
skip-java-11: true

workflow-notification:
needs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable-smoke-test-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
skip-java-8:
type: boolean
required: false
skip-java-11:
type: boolean
required: false
skip-java-17:
type: boolean
required: false
Expand Down Expand Up @@ -70,6 +73,7 @@ jobs:
run: ./gradlew ${{ inputs.project }}:${{ inputs.publish && 'jib' || 'jibDockerBuild' }} -Ptag=${{ env.TAG }} -PtargetJDK=8 -Djib.httpTimeout=120000 -Djib.console=plain

- name: Build Java 11 Docker image
if: "!inputs.skip-java-11"
run: ./gradlew ${{ inputs.project }}:${{ inputs.publish && 'jib' || 'jibDockerBuild' }} -Ptag=${{ env.TAG }} -PtargetJDK=11 -Djib.httpTimeout=120000 -Djib.console=plain

- name: Build Java 17 Docker image
Expand Down
14 changes: 5 additions & 9 deletions smoke-tests/images/quarkus/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {

dependencies {
implementation(enforcedPlatform("io.quarkus:quarkus-bom:3.15.1"))
implementation("io.quarkus:quarkus-resteasy")
implementation("io.quarkus:quarkus-rest")
}

quarkus {
Expand All @@ -26,7 +26,8 @@ quarkus {
setFinalName("opentelemetry-quarkus-$version")
}

val targetJDK = project.findProperty("targetJDK") ?: "11"
// Quarkus 3.7+ requires Java 17+
val targetJDK = project.findProperty("targetJDK") ?: "17"

val tag = findProperty("tag")
?: DateTimeFormatter.ofPattern("yyyyMMdd.HHmmSS").format(LocalDateTime.now())
Expand All @@ -45,18 +46,13 @@ jib {
container {
mainClass = "bogus" // to suppress Jib warning about missing main class
}
pluginExtensions {
pluginExtension {
implementation = "com.google.cloud.tools.jib.gradle.extension.quarkus.JibQuarkusExtension"
}
}
}

tasks {
withType<JavaCompile>().configureEach {
with(options) {
// Quarkus 2.0+ does not support Java 8
release.set(11)
// Quarkus 3.7+ requires Java 17+
release.set(17)
}
}

Expand Down

This file was deleted.

0 comments on commit 692e5ab

Please sign in to comment.