Skip to content

Commit 888d5a1

Browse files
committed
enh(jdk): run on jdk 11, 17, and 21
1 parent 938831d commit 888d5a1

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/maven.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ permissions:
2323
on:
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

3030
jobs:
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

.jenkins.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
def deployableBranch = env.BRANCH_NAME ==~ /(1.7.x|1.8.x|1.9.x|main)/
20+
def deployableBranch = env.BRANCH_NAME ==~ /(1.12.x|1.11.x|1.10.x|main)/
2121

2222
pipeline {
2323

@@ -36,7 +36,7 @@ pipeline {
3636
axis {
3737
// https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Matrix
3838
name 'MATRIX_JDK'
39-
values 'jdk_11_latest', 'jdk_17_latest', 'jdk_19_latest'
39+
values 'jdk_11_latest', 'jdk_17_latest', 'jdk_21_latest'
4040
}
4141
// Additional axes, like OS and maven version can be configured here.
4242
}

0 commit comments

Comments
 (0)