From 4c6dcf635282d8dd6889b7d76e3400aca2ea2da0 Mon Sep 17 00:00:00 2001 From: Eno Compton Date: Wed, 21 Aug 2024 09:05:37 -0600 Subject: [PATCH] ci: use graalvm-community and native image maven plugin This change sets up to use a managed GraalVM test image. See https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/pull/2030. Fixes #561. --- .github/workflows/ci.yaml | 6 +++--- pom.xml | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4d5f1961..cb6d3a9a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -200,10 +200,10 @@ jobs: java-version: 17 - name: Set up GraalVM - uses: graalvm/setup-graalvm@22cc13fe88ef133134b3798e128fb208df55e1f5 # v1 + uses: graalvm/setup-graalvm@2911b2304bee2c2f59b9a67bf45f025a6b6de4b1 # v1.2.2 with: - distribution: "graalvm" - java-version: "17" + java-version: "21" + distribution: "graalvm-community" github-token: ${{ secrets.GITHUB_TOKEN }} - id: "auth" diff --git a/pom.xml b/pom.xml index e7b97964..3143a1b6 100644 --- a/pom.xml +++ b/pom.xml @@ -60,7 +60,6 @@ alloydb-connector-parent https://googleapis.dev/java/google-api-grpc/latest 2.30.0 - 0.10.2 1.78.1 @@ -290,7 +289,7 @@ org.graalvm.buildtools junit-platform-native - ${native-image.version} + ${native-maven-plugin.version} test @@ -299,7 +298,7 @@ org.graalvm.buildtools native-maven-plugin - ${native-image.version} + ${native-maven-plugin.version} true