File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 22
22
23
23
env :
24
24
MAVEN_OPTS : -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3
25
-
25
+ BASE_JAVA_VERSION : 17
26
+ DEFAULT_JAVA_DISTRIBUTION : ' temurin'
26
27
jobs :
27
28
build :
28
29
strategy :
29
30
fail-fast : false
30
31
matrix :
31
- java : [ 17, 21 ]
32
+ java : [ 17, 21, 25 ]
32
33
name : " Java ${{ matrix.java }}"
33
34
runs-on : ubuntu-24.04
34
35
steps :
46
47
uses : actions/setup-java@v5
47
48
with :
48
49
java-version : ${{ matrix.java }}
49
- distribution : ' zulu '
50
+ distribution : ${{ env.DEFAULT_JAVA_DISTRIBUTION }}
50
51
- name : Build
51
52
run : mvn -B -e -Papache-release -Dgpg.skip=true verify
52
53
- name : Remove Snapshots
68
69
- name : Set up Java
69
70
uses : actions/setup-java@v5
70
71
with :
71
- distribution : ' zulu '
72
- java-version : 17
72
+ java-version : ${{ env.BASE_JAVA_VERSION }}
73
+ distribution : ${{ env.DEFAULT_JAVA_DISTRIBUTION }}
73
74
- name : Build
74
75
run : mvn -B -e -Dmaven.test.skip=true package site-deploy
75
76
- name : Remove Snapshots
95
96
- name : Set up Java
96
97
uses : actions/setup-java@v5
97
98
with :
98
- java-version : 17
99
- distribution : ' zulu '
99
+ java-version : ${{ env.BASE_JAVA_VERSION }}
100
+ distribution : ${{ env.DEFAULT_JAVA_DISTRIBUTION }}
100
101
server-id : apache.snapshots.https
101
102
server-username : NEXUS_USER
102
103
server-password : NEXUS_PW
You can’t perform that action at this time.
0 commit comments