diff --git a/.github/workflows/java-quarkus-native-image-maven.yml b/.github/workflows/java-quarkus-native-image-maven.yml index eed79cc7..e9f72aba 100644 --- a/.github/workflows/java-quarkus-native-image-maven.yml +++ b/.github/workflows/java-quarkus-native-image-maven.yml @@ -3,25 +3,25 @@ name: java-quarkus-native-image-maven merge_group: pull_request: paths: - - java/native-image/quarkus-native-image-maven/** + - java/native-image/quarkus-native-image-maven/** push: branches: - - main + - main paths: - - java/native-image/quarkus-native-image-maven/** + - java/native-image/quarkus-native-image-maven/** jobs: test: runs-on: ubuntu-latest strategy: matrix: - java: [17] + java: [21] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} - distribution: 'zulu' + distribution: "zulu" - run: ./mvnw -B package -Djava.version=${{ matrix.java }} working-directory: java/native-image/quarkus-native-image-maven diff --git a/java/native-image/quarkus-native-image-maven/pom.xml b/java/native-image/quarkus-native-image-maven/pom.xml index 722f8161..5cbebe9e 100644 --- a/java/native-image/quarkus-native-image-maven/pom.xml +++ b/java/native-image/quarkus-native-image-maven/pom.xml @@ -9,7 +9,7 @@ quarkus-bom io.quarkus - 3.2.4.Final + 3.14.0 3.13.0 3.4.0 UTF-8 diff --git a/java/native-image/quarkus-native-image-maven/smoke_test/java_native_image_quarkus_native_test.go b/java/native-image/quarkus-native-image-maven/smoke_test/java_native_image_quarkus_native_test.go index 0e39c893..51ed6cff 100644 --- a/java/native-image/quarkus-native-image-maven/smoke_test/java_native_image_quarkus_native_test.go +++ b/java/native-image/quarkus-native-image-maven/smoke_test/java_native_image_quarkus_native_test.go @@ -3,12 +3,13 @@ package native_image_test import ( "flag" "fmt" - "github.com/paketo-buildpacks/samples/tests" "os" "path/filepath" "testing" "time" + "github.com/paketo-buildpacks/samples/tests" + "github.com/paketo-buildpacks/occam" "github.com/sclevine/spec" "github.com/sclevine/spec/report" @@ -22,6 +23,7 @@ var builders tests.BuilderFlags func init() { flag.Var(&builders, "name", "the name a builder to test with") } + func TestJNIQuarkus(t *testing.T) { Expect := NewWithT(t).Expect @@ -83,6 +85,7 @@ func testQuarkusWithBuilder(builder string) func(*testing.T, spec.G, spec.S) { image, logs, err = pack.Build. WithPullPolicy("never"). WithEnv(map[string]string{ + "BP_JVM_VERSION": "21", "BP_NATIVE_IMAGE": "true", "BP_MAVEN_BUILD_ARGUMENTS": "-Dquarkus.package.type=native-sources -Dmaven.test.skip=true package", "BP_MAVEN_BUILT_ARTIFACT": "target/native-sources",