From 248d9273f28a763599f5593a05ff50ca48820842 Mon Sep 17 00:00:00 2001 From: Geoffroy Jamgotchian Date: Fri, 27 Oct 2023 12:12:10 +0200 Subject: [PATCH] GraalVM JDK 21 Signed-off-by: Geoffroy Jamgotchian --- .github/workflows/dev-ci.yml | 4 ++-- .github/workflows/full-ci.yml | 4 ++-- cpp/CMakeLists.txt | 2 +- java/pom.xml | 10 ++-------- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index 2566eb762f..0aa9ac606c 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -28,7 +28,7 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} @@ -109,7 +109,7 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/full-ci.yml b/.github/workflows/full-ci.yml index ccd7015777..e24f6c5e3e 100644 --- a/.github/workflows/full-ci.yml +++ b/.github/workflows/full-ci.yml @@ -48,7 +48,7 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} @@ -155,7 +155,7 @@ jobs: - name: Setup GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 948448fcec..5361bf65ab 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -76,7 +76,7 @@ ExternalProject_Add(native-image DEPENDS mvn SOURCE_DIR ${PYPOWSYBL_JAVA_BIN_DIR} DOWNLOAD_COMMAND "" - PATCH_COMMAND $ENV{JAVA_HOME}/bin/native-image ${NATIVE_IMAGE_BUILD_OPTIONS} --class-path ${PYPOWSYBL_JAVA_SRC_DIR}/target/pypowsybl-java.jar${EXTRA_JARS} -march=compatibility --no-fallback --shared --gc=${NATIVE_IMAGE_GC} -H:Name=pypowsybl-java -H:CLibraryPath=${CMAKE_CURRENT_SOURCE_DIR}/src + PATCH_COMMAND $ENV{JAVA_HOME}/bin/native-image ${NATIVE_IMAGE_BUILD_OPTIONS} --class-path ${PYPOWSYBL_JAVA_SRC_DIR}/target/pypowsybl-java.jar${EXTRA_JARS} --pgo-instrument -H:+ProfilingEnableProfileDumpHooks -march=compatibility --no-fallback --shared --gc=${NATIVE_IMAGE_GC} -H:Name=pypowsybl-java -H:CLibraryPath=${CMAKE_CURRENT_SOURCE_DIR}/src CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND ${CMAKE_COMMAND} -E copy ${PYPOWSYBL_JAVA_BIN_DIR}/${PYPOWSYBL_JAVA_OLD_LIB} ${PYPOWSYBL_JAVA_BIN_DIR}/${PYPOWSYBL_JAVA_LIB} ${NATIVE_IMAGE_INSTALL_EXTRA_COMMAND} diff --git a/java/pom.xml b/java/pom.xml index b36647194f..0fd0c479dc 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -61,9 +61,9 @@ 1.1.0-SNAPSHOT - 17 + 21 4.4 - 23.0.0 + 23.1.1 3.1.0 5.5.2 3.0.8 @@ -186,12 +186,6 @@ janino ${janino.version} - - org.graalvm.sdk - graal-sdk - ${graalvm.version} - provided - org.graalvm.nativeimage svm