From e1d58d1d2a06f17944c76c3bd2eef9110d50df26 Mon Sep 17 00:00:00 2001 From: Christopher Chianelli Date: Mon, 2 Dec 2024 14:09:10 -0500 Subject: [PATCH] chore: Remove GraalVM for Java 17 from Quarkus test, fix some warnings - Per https://github.com/quarkusio/quarkus/issues/44877, GraalVM for Java 21 is recommended even for Java 17 projects, since GraalVM for Java 17 has weird issues with Quarkus - Use quarkus.native.enabled since quarkus.package.type is deprecated - Use org.graalvm.sdk:nativeimage instead of org.graalvm.sdk:graalvm-sdk per the recommendation in the logs --- .github/workflows/pull_request.yml | 7 +++++++ quarkus-integration/quarkus/devui-integration-test/pom.xml | 2 +- quarkus-integration/quarkus/integration-test/pom.xml | 2 +- .../quarkus/reflection-integration-test/pom.xml | 2 +- quarkus-integration/quarkus/runtime/pom.xml | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index f353d73680..fb86f9bf98 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -98,6 +98,13 @@ jobs: os: [ ubuntu-latest ] # Windows doesn't work, Mac is not a deploy OS. module: ["spring-integration", "quarkus-integration"] java-version: [ 17, 21, 23 ] # LTS + latest. + exclude: + # Quarkus 3.17.2 has weird issues with Java 17 GraalVM, + # with Java 21+ GraalVM being recommended even for + # Java 17 projects. + # https://github.com/quarkusio/quarkus/issues/44877 + - module: "quarkus-integration" + java-version: 17 timeout-minutes: 120 steps: - uses: actions/checkout@v4 diff --git a/quarkus-integration/quarkus/devui-integration-test/pom.xml b/quarkus-integration/quarkus/devui-integration-test/pom.xml index 468ef1a43e..3dfc39fa1e 100644 --- a/quarkus-integration/quarkus/devui-integration-test/pom.xml +++ b/quarkus-integration/quarkus/devui-integration-test/pom.xml @@ -123,7 +123,7 @@ - native + true diff --git a/quarkus-integration/quarkus/integration-test/pom.xml b/quarkus-integration/quarkus/integration-test/pom.xml index 39ea850616..9f794f9182 100644 --- a/quarkus-integration/quarkus/integration-test/pom.xml +++ b/quarkus-integration/quarkus/integration-test/pom.xml @@ -111,7 +111,7 @@ - native + true diff --git a/quarkus-integration/quarkus/reflection-integration-test/pom.xml b/quarkus-integration/quarkus/reflection-integration-test/pom.xml index c79980bd73..5bf7eb44eb 100644 --- a/quarkus-integration/quarkus/reflection-integration-test/pom.xml +++ b/quarkus-integration/quarkus/reflection-integration-test/pom.xml @@ -111,7 +111,7 @@ - native + true diff --git a/quarkus-integration/quarkus/runtime/pom.xml b/quarkus-integration/quarkus/runtime/pom.xml index caec6d881f..7e4461fd21 100644 --- a/quarkus-integration/quarkus/runtime/pom.xml +++ b/quarkus-integration/quarkus/runtime/pom.xml @@ -44,7 +44,7 @@ org.graalvm.sdk - graal-sdk + nativeimage