From 1876333fcdb9681df8e402047b0ae793770163b8 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Tue, 11 Jun 2024 21:00:24 +0200 Subject: [PATCH 1/3] Update versions and dependencies --- native-image-configure-examples/README.md | 8 ++++---- .../configure-at-buildtime-example/pom.xml | 12 +++--------- .../configure-at-runtime-example/pom.xml | 13 +++---------- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/native-image-configure-examples/README.md b/native-image-configure-examples/README.md index 08d70f5e2..585781552 100644 --- a/native-image-configure-examples/README.md +++ b/native-image-configure-examples/README.md @@ -31,7 +31,7 @@ In both examples we use the Jackson framework to parse a JSON file to determine cd graalvm-demos/native-image-configure-examples ``` -## Build and run examples +## Build and Run Examples 1. Change to one of the demo subdirectories, for example, `configure-at-runtime-example`: ```bash @@ -41,9 +41,9 @@ In both examples we use the Jackson framework to parse a JSON file to determine ```bash mvn package ``` -3. Once the Maven build succeeds, a native executable called "example" will be generated in the `configure-at-runtime-example/target/` directory. Run it: +3. Once the Maven build succeeds, a native executable called "runtime-example" will be generated in the `configure-at-runtime-example/target/` directory. Run it: ```bash - ./target/example + ./target/runtime-example ``` You will see the current date and time message. 4. Repeat the same steps for the other sub-demo: @@ -54,7 +54,7 @@ In both examples we use the Jackson framework to parse a JSON file to determine mvn package ``` ```bash - ./target/example + ./target/buildtime-example ``` You will see the next output: ``` diff --git a/native-image-configure-examples/configure-at-buildtime-example/pom.xml b/native-image-configure-examples/configure-at-buildtime-example/pom.xml index 30503e62d..452d1808a 100644 --- a/native-image-configure-examples/configure-at-buildtime-example/pom.xml +++ b/native-image-configure-examples/configure-at-buildtime-example/pom.xml @@ -5,22 +5,16 @@ 4.0.0 org.graalvm.nativeimage - configure-at-buildtime-example + buildtime-time-init 1.0-SNAPSHOT UTF-8 - 0.9.28 + 0.10.2 2.16.0 - - org.graalvm.sdk - graal-sdk - 23.1.1 - provided - com.fasterxml.jackson.core jackson-annotations @@ -88,7 +82,7 @@ false - example + buildtime-example --no-fallback diff --git a/native-image-configure-examples/configure-at-runtime-example/pom.xml b/native-image-configure-examples/configure-at-runtime-example/pom.xml index 06acc70c3..e59909dd5 100644 --- a/native-image-configure-examples/configure-at-runtime-example/pom.xml +++ b/native-image-configure-examples/configure-at-runtime-example/pom.xml @@ -5,22 +5,16 @@ 4.0.0 org.graalvm.nativeimage - configure-at-runtime-example + runtime-init 1.0-SNAPSHOT UTF-8 - 0.9.28 + 0.10.2 2.16.0 - - org.graalvm.sdk - graal-sdk - 23.1.1 - provided - com.fasterxml.jackson.core jackson-annotations @@ -88,8 +82,7 @@ - false - example + runtime-example --no-fallback From fa3ef8fa241dd6477457e68a951cc934d47fc146 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Wed, 12 Jun 2024 10:11:20 +0200 Subject: [PATCH 2/3] Update GitHub workflow file --- .github/workflows/native-image-configure-examples.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/native-image-configure-examples.yml b/.github/workflows/native-image-configure-examples.yml index 66d7fd3e1..2deb26673 100644 --- a/.github/workflows/native-image-configure-examples.yml +++ b/.github/workflows/native-image-configure-examples.yml @@ -20,7 +20,7 @@ jobs: timeout-minutes: 15 strategy: matrix: - java-version: ['21', 'dev'] + java-version: ['22', 'dev'] steps: - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 @@ -33,9 +33,9 @@ jobs: run: | cd native-image-configure-examples/configure-at-runtime-example mvn --no-transfer-progress package - ./target/example + ./target/runtime-example - name: Run 'configure-at-buildtime-example' run: | cd native-image-configure-examples/configure-at-buildtime-example mvn --no-transfer-progress package - ./target/example + ./target/buildtime-example From bed644a36bcd61355aba2d82aaee768f8f336c30 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Wed, 12 Jun 2024 13:27:50 +0200 Subject: [PATCH 3/3] Test against GraalVM EA build --- .github/workflows/native-image-configure-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/native-image-configure-examples.yml b/.github/workflows/native-image-configure-examples.yml index 2deb26673..425b591e5 100644 --- a/.github/workflows/native-image-configure-examples.yml +++ b/.github/workflows/native-image-configure-examples.yml @@ -20,7 +20,7 @@ jobs: timeout-minutes: 15 strategy: matrix: - java-version: ['22', 'dev'] + java-version: ['21', 'latest-ea'] steps: - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1