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 2222
2323env :
2424 MAVEN_OPTS : -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3
25-
25+ BASE_JAVA_VERSION : 17
26+ DEFAULT_JAVA_DISTRIBUTION : ' temurin'
2627jobs :
2728 build :
2829 strategy :
2930 fail-fast : false
3031 matrix :
31- java : [ 17, 21 ]
32+ java : [ 17, 21 25 ]
3233 name : " Java ${{ matrix.java }}"
3334 runs-on : ubuntu-24.04
3435 steps :
4647 uses : actions/setup-java@v5
4748 with :
4849 java-version : ${{ matrix.java }}
49- distribution : ' zulu '
50+ distribution : ${{ env.DEFAULT_JAVA_DISTRIBUTION }}
5051 - name : Build
5152 run : mvn -B -e -Papache-release -Dgpg.skip=true verify
5253 - name : Remove Snapshots
6869 - name : Set up Java
6970 uses : actions/setup-java@v5
7071 with :
71- distribution : ' zulu '
72- java-version : 17
72+ java-version : ${{ env.BASE_JAVA_VERSION }}
73+ distribution : ${{ env.DEFAULT_JAVA_DISTRIBUTION }}
7374 - name : Build
7475 run : mvn -B -e -Dmaven.test.skip=true package site-deploy
7576 - name : Remove Snapshots
9596 - name : Set up Java
9697 uses : actions/setup-java@v5
9798 with :
98- java-version : 17
99- distribution : ' zulu '
99+ java-version : ${{ env.BASE_JAVA_VERSION }}
100+ distribution : ${{ env.DEFAULT_JAVA_DISTRIBUTION }}
100101 server-id : apache.snapshots.https
101102 server-username : NEXUS_USER
102103 server-password : NEXUS_PW
You can’t perform that action at this time.
0 commit comments