Skip to content

Commit 47d16b9

Browse files
committed
No more Java 11
1 parent 0c7c66b commit 47d16b9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ name: Maven deploy Snapshots
2222

2323
on:
2424
push:
25-
branches:
26-
- main
2725

2826
jobs:
2927
build:
3028
runs-on: ubuntu-latest
3129
strategy:
3230
matrix:
33-
java: [ 11, 17, 21, 24 ]
31+
java: [ 17, 21, 24 ]
3432
name: Java ${{ matrix.java }} build
3533

3634
steps:
@@ -54,11 +52,11 @@ jobs:
5452
5553
- name: Publish to the Maven Central Repository
5654
run: mvn --batch-mode --update-snapshots -P release-snapshot deploy
57-
if: matrix.java == 11
55+
if: matrix.java == 17
5856
env:
5957
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
6058
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
6159

6260
- name: Maven Build
6361
run: mvn --batch-mode --update-snapshots install
64-
if: matrix.java != 11
62+
if: matrix.java != 17

0 commit comments

Comments
 (0)