Skip to content

Commit

Permalink
Bump to Java 21
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Mikusa <[email protected]>
  • Loading branch information
dmikusa committed Aug 23, 2024
1 parent 09de2e9 commit 21ffabf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/java-quarkus-native-image-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 21ffabf

Please sign in to comment.