diff --git a/.github/workflows/native-image-configure-examples.yml b/.github/workflows/native-image-configure-examples.yml index 66d7fd3e1..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: ['21', 'dev'] + java-version: ['21', 'latest-ea'] 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 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