Skip to content

Commit b1abd7b

Browse files
committed
Migrates scripts to use Maven Wrapper (to ensure consistency of Maven version used across different environments)
1 parent 753cdc2 commit b1abd7b

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/_BACKUP_manual_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
git config user.name 'github-actions[bot]'
3232
git config user.email ''
3333
- name: Maven release
34-
run: mvn release:prepare -B -ff -DtagNameFormat=@{project.version}
34+
run: ./mvnw release:prepare -B -ff -DtagNameFormat=@{project.version}
3535
- name: Maven release clean
36-
run: mvn release:clean
36+
run: ./mvnw release:clean
3737
- name: Get last TAG
3838
run: echo "LAST_TAG=$(git tag --sort=-version:refname | head -n 1)" >> $GITHUB_ENV
3939
- name: Extract release notes
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
ref: ${{ env.LAST_TAG }}
4646
- name: Build project
47-
run: mvn -e -B clean package -DskipTests
47+
run: ./mvnw -e -B clean package -DskipTests
4848
- name: Create release
4949
id: create_release
5050
uses: actions/create-release@v1

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
restore-keys: ${{ runner.os }}-m2
3939

4040
- name: Verify
41-
run: mvn -e -B verify
41+
run: ./mvnw -e -B verify
4242

4343
- name: Set up JDK 17
4444
uses: actions/setup-java@v3
@@ -57,4 +57,4 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
60-
run: mvn -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecoCode-java
60+
run: ./mvnw -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecoCode-java

.github/workflows/tag_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
id: extract-release-notes
3030
uses: ffurrer2/extract-release-notes@v1
3131
- name: Build project
32-
run: mvn -e -B clean package -DskipTests
32+
run: ./mvnw -e -B clean package -DskipTests
3333
- name: Create release
3434
id: create_release
3535
uses: actions/create-release@v1

tool_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env sh
22

3-
mvn clean package -DskipTests
3+
./mvnw clean package -DskipTests

tool_compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env sh
22

3-
mvn clean compile
3+
./mvnw clean compile

tool_release_1_prepare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
###
66

77
# creation of 2 commits with release and next SNAPSHOT
8-
mvn release:prepare -B -ff -DpushChanges=false -DtagNameFormat=@{project.version}
8+
./mvnw release:prepare -B -ff -DpushChanges=false -DtagNameFormat=@{project.version}
99

1010
sleep 2
1111

1212
# clean temporary files
13-
mvn release:clean
13+
./mvnw release:clean

0 commit comments

Comments
 (0)