@@ -23,9 +23,9 @@ permissions:
2323on :
2424 workflow_dispatch : {}
2525 push :
26- branches : [ main, '1.11 .x', '1.10 .x', '1.9 .x' ]
26+ branches : [ main, '1.12 .x', '1.11 .x', '1.10 .x' ]
2727 pull_request :
28- branches : [ main, '1.11 .x', '1.10 .x', '1.9 .x' ]
28+ branches : [ main, '1.12 .x', '1.11 .x', '1.10 .x' ]
2929
3030jobs :
3131 build :
@@ -55,23 +55,22 @@ jobs:
5555 strategy :
5656 matrix :
5757 os : [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
58- jdk : [ 11, 17, 19 ]
58+ jdk : [ 11, 17, 21 ]
5959 dist : [ 'temurin', 'adopt-openj9', 'zulu' ]
6060 exclude :
6161 # was already built
6262 - os : ' ubuntu-latest'
6363 jdk : 11
6464 dist : ' temurin'
65- # exclude some builds, because MacOs builds have fewer resources available.
66- # excludes java 16 on macOS.
67- - os : ' macOS-latest'
68- jdk : 16
6965 # exclude temurin on MacOS. zulu (also hotspot) and OpenJ9 are sufficient.
7066 - os : ' macOS-latest'
7167 dist : ' temurin'
72- # no OpenJ9 19
68+ # no Temurin 21
69+ - dist : ' temurin'
70+ jdk : 21
71+ # no OpenJ9 21
7372 - dist : adopt-openj9
74- jdk : 19
73+ jdk : 21
7574 fail-fast : false
7675
7776 runs-on : ${{ matrix.os }}
@@ -87,13 +86,13 @@ jobs:
8786 distribution : ${{ matrix.dist }}
8887
8988 - name : Build with Maven (Linux)
90- if : matrix.os == 'ubuntu-latest'
89+ if : matrix.os == 'ubuntu-latest' && matrix.jdk <= 17
9190 run : >-
9291 mvn verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
9392 -Dgh_user=${{ github.actor }} -Dgh_token=${{ secrets.GITHUB_TOKEN }}
9493
95- - name : Build with Maven (non-Linux)
96- if : matrix.os != 'ubuntu-latest'
94+ - name : Build with Maven (non-Linux or JDK > 17 )
95+ if : matrix.os != 'ubuntu-latest' || matrix.jdk > 17
9796 run : >-
9897 mvn verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs
9998 -Pskip_jakarta_ee_tests
0 commit comments