From 35e2074a56a73c16dff71192d599c64880c66fbf Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Sat, 23 Mar 2024 10:13:02 -0500 Subject: [PATCH] Fixes #3682 - Add Java 22 to build matrix (#3685) --- .github/workflows/build.yml | 5 +- http/virtual/pom.xml | 91 +++++++++++++------ .../springboot-virtualthreads/pom.xml | 47 ++++++++-- 3 files changed, 107 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1712e1aee..e72a2008b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,16 +14,17 @@ jobs: strategy: fail-fast: false matrix: + java: [ 21, 22 ] os: [ubuntu-latest, windows-latest] steps: - name: Checkout Sources uses: actions/checkout@v3 - - name: Setup Java 21 + - name: Setup Java uses: actions/setup-java@v3 with: cache: 'maven' distribution: 'temurin' - java-version: 21 + java-version: ${{ matrix.java }} - name: Build with Maven run: mvn --no-transfer-progress -B install - name: Publish Unit Test Results diff --git a/http/virtual/pom.xml b/http/virtual/pom.xml index 36b7b1bcb8..476099d276 100644 --- a/http/virtual/pom.xml +++ b/http/virtual/pom.xml @@ -1,18 +1,16 @@ + 4.0.0 - cloud.piranha.http project 24.4.0-SNAPSHOT - piranha-http-virtual Piranha - HTTP - Virtual Threads implementation - cloud.piranha.http @@ -26,30 +24,8 @@ test - - - org.apache.maven.plugins - maven-compiler-plugin - - ${java.version} - true - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - attach-javadocs - - --enable-preview - ${java.version} - - - - org.apache.maven.plugins maven-surefire-plugin @@ -59,5 +35,68 @@ - + + + jdk21 + + 21 + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java.version} + true + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + --enable-preview + ${java.version} + + + + + + + + + jdk22 + + 22 + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 22 + true + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + --enable-preview + 22 + + + + + + + + diff --git a/test/embedded/springboot-virtualthreads/pom.xml b/test/embedded/springboot-virtualthreads/pom.xml index b967db0dbd..dc87dd0ff8 100644 --- a/test/embedded/springboot-virtualthreads/pom.xml +++ b/test/embedded/springboot-virtualthreads/pom.xml @@ -50,14 +50,6 @@ - - org.apache.maven.plugins - maven-compiler-plugin - - ${java.version} - true - - org.springframework.boot spring-boot-maven-plugin @@ -68,4 +60,43 @@ + + + jdk21 + + 21 + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${java.version} + true + + + + + + + jdk22 + + 22 + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 22 + true + + + + + + +