Skip to content

Commit dd78592

Browse files
authored
Update ci.yaml - drop java 11
switching build to run from java 17+ only. Removed extra items involved for older jdks. Compatibility will still sit lower for now but pom needs updated to not inherit java 11 before expected.
1 parent bbbe7b0 commit dd78592

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/ci.yaml

+4-13
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
matrix:
1010
cache: [maven]
1111
distribution: [temurin]
12-
java: [11, 17, 21, 22, 23-ea, 24-ea]
12+
java: [17, 21, 22, 23-ea, 24-ea]
1313
os: [ubuntu-latest, macos-latest, windows-latest]
1414
fail-fast: false
1515
max-parallel: 4
@@ -31,26 +31,17 @@ jobs:
3131
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3232
restore-keys: |
3333
${{ runner.os }}-m2
34-
- name: Set argLine command line option
35-
if: ${{ matrix.java == '11' }}
36-
run: echo 'ARG_LINE=-D"argLine=--illegal-access=permit"' >> $GITHUB_ENV
37-
- name: Run all tests
38-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
39-
run: echo 'ARG_LINE=-D"excludedGroups="' >> $GITHUB_ENV
4034
- name: Skip tests that require illegal reflective access
41-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java != '11' }}
35+
if: ${{ matrix.os == 'ubuntu-latest' }}
4236
run: echo 'ARG_LINE=-D"excludedGroups=RequireIllegalAccess"' >> $GITHUB_ENV
4337
- name: Skip tests that require illegal reflective access
44-
if: ${{ matrix.os != 'ubuntu-latest' && matrix.java != '11' }}
38+
if: ${{ matrix.os != 'ubuntu-latest' }}
4539
run: echo 'ARG_LINE=-D"excludedGroups=TestcontainersTests,RequireIllegalAccess"' >> $GITHUB_ENV
4640
- name: Active Profiles
4741
run: ./mvnw help:active-profiles
4842
- name: Test with Maven
4943
if: ${{ matrix.os != 'windows-latest' }}
5044
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -D"jacoco.skip=true" $ARG_LINE
5145
- name: Test with Maven
52-
if: ${{ matrix.os == 'windows-latest' && matrix.java == '11' }}
53-
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -D"jacoco.skip=true" -D"argLine=--illegal-access=permit"
54-
- name: Test with Maven
55-
if: ${{ matrix.os == 'windows-latest' && matrix.java != '11' }}
46+
if: ${{ matrix.os == 'windows-latest' }}
5647
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -D"jacoco.skip=true" -D"excludedGroups=TestcontainersTests,RequireIllegalAccess"

0 commit comments

Comments
 (0)