@@ -18,18 +18,12 @@ jobs:
1818 runs-on : ${{ matrix.os }}
1919
2020 steps :
21- - name : Checkout source code
22- uses : actions/checkout@v6
21+ - name : Checkout and Setup Maven
22+ uses : s4u/setup-maven-action@v1.19.0
2323 with :
24- submodules : true
25- fetch-depth : 0
26-
27- - name : Setup Java
28- uses : actions/setup-java@v5
29- with :
30- distribution : ' zulu'
24+ checkout-submodules : true
25+ checkout-fetch-depth : 0
3126 java-version : ${{ matrix.java }}
32- cache : ' maven'
3327
3428 - name : Pre-download dependencies with Maven
3529 run : mvn -U dependency:go-offline
@@ -70,18 +64,12 @@ jobs:
7064 runs-on : ${{ matrix.os }}
7165
7266 steps :
73- - name : Checkout source code
74- uses : actions/checkout@v6
75- with :
76- submodules : true
77- fetch-depth : 0
78-
79- - name : Setup Java
80- uses : actions/setup-java@v5
67+ - name : Checkout and Setup Maven
68+ uses : s4u/setup-maven-action@v1.19.0
8169 with :
82- distribution : ' zulu'
70+ checkout-submodules : true
71+ checkout-fetch-depth : 0
8372 java-version : ${{ matrix.java }}
84- cache : ' maven'
8573
8674 - name : Deploy snapshot with Maven if settings defined
8775 run : test ! -f ci.settings.xml || mvn deploy -DskipTests -s ci.settings.xml -P base-deploy,snapshot-deploy,!non-deployable-modules
@@ -120,18 +108,12 @@ jobs:
120108 runs-on : ${{ matrix.os }}
121109
122110 steps :
123- - name : Checkout source code
124- uses : actions/checkout@v6
125- with :
126- submodules : true
127- fetch-depth : 0
128-
129- - name : Setup Java
130- uses : actions/setup-java@v5
111+ - name : Checkout and Setup Maven
112+ uses : s4u/setup-maven-action@v1.19.0
131113 with :
132- distribution : ' zulu'
114+ checkout-submodules : true
115+ checkout-fetch-depth : 0
133116 java-version : ${{ matrix.java }}
134- cache : ' maven'
135117
136118 - name : Deploy with Maven if settings defined
137119 run : test ! -f ci.settings.xml || mvn deploy -DskipTests -s ci.settings.xml -P base-deploy,release-deploy,!non-deployable-modules
0 commit comments