Skip to content

Commit b7a0270

Browse files
committed
Fix maven versions:set calls
1 parent ed606b9 commit b7a0270

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/release-workflow.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ jobs:
195195
- name: Checkout
196196
uses: actions/checkout@v3
197197

198+
# Required to have Maven settings.xml set up correctly
198199
- name: Set up JDK 17
199200
uses: actions/setup-java@v3
200201
with:
@@ -205,6 +206,17 @@ jobs:
205206
server-password: OSSRH_TOKEN
206207
overwrite-settings: false
207208

209+
# Required to run the mvn:versions, since enforcer plugin
210+
# will check for GraalVM JDK
211+
- name: Setup JDK
212+
uses: graalvm/setup-graalvm@v1
213+
with:
214+
version: '22.3.1'
215+
java-version: '17'
216+
components: 'native-image,js'
217+
github-token: ${{ secrets.GITHUB_TOKEN }}
218+
native-image-job-reports: 'false'
219+
208220
- name: Fetch Linux Artifacts
209221
uses: actions/download-artifact@v3
210222
with:
@@ -251,9 +263,9 @@ jobs:
251263
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
252264
253265
# Set version in pom.xml files
254-
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
255-
mvn versions:set -DnewVersion=${{ github.event.inputs.release_version }}
256-
mvn versions:commit
266+
mvn -B clean install -DskipTests -Dmaven.javadoc.skip=true
267+
mvn -B versions:set -DnewVersion=${{ github.event.inputs.release_version }}
268+
mvn -B versions:commit
257269
# Set version in Antora module
258270
yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/developer-guide/antora.yml
259271

0 commit comments

Comments
 (0)