Skip to content

Commit b3875b3

Browse files
authored
chore: update build scripts to use ./mvnw instead of mvn (#4407)
1 parent 03b43d5 commit b3875b3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/build-feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error
5050
- name: Build with Maven
5151
run: |
52-
mvn -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true
52+
./mvnw -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true
5353
5454
- uses: codecov/codecov-action@v5
5555
with:

.github/workflows/build-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
# otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error
4040
- name: Build with Maven
4141
run: |
42-
mvn -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true
42+
./mvnw -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true
4343
4444
- uses: codecov/codecov-action@v5
4545
with:
@@ -72,7 +72,7 @@ jobs:
7272
${{ runner.os }}-
7373
7474
- name: Publish SNAPSHOT version to GitHub Packages (we can skip tests, since we only deploy, if the build workflow succeeded)
75-
run: mvn -B --no-transfer-progress deploy -DskipTests
75+
run: ./mvnw -B --no-transfer-progress deploy -DskipTests
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7878

.github/workflows/deploy-documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
${{ runner.os }}-
4343
4444
- name: Set projects Maven version to GitHub Action GUI set version
45-
run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress
45+
run: ./mvnw versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress
4646

4747
- name: Build with Maven
48-
run: mvn -B --no-transfer-progress install -DskipTests
48+
run: ./mvnw -B --no-transfer-progress install -DskipTests
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151

.github/workflows/release-to-maven-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ jobs:
6161
${{ runner.os }}-build-${{ env.cache-name }}-
6262
6363
- name: Set projects Maven version to GitHub Action GUI set version
64-
run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress
64+
run: ./mvnw versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress
6565

6666
- name: Publish package
67-
run: mvn -B deploy --no-transfer-progress -P central-deploy -DskipTests=true
67+
run: ./mvnw -B deploy --no-transfer-progress -P central-deploy -DskipTests=true
6868
env:
6969
#TODO: This is a workaround for NEXUS-27902 which uses XStream that fails on JVM >16
7070
JDK_JAVA_OPTIONS: "--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED"

0 commit comments

Comments
 (0)