Skip to content

Commit

Permalink
Migrates scripts to use Maven Wrapper (to ensure consistency of Maven…
Browse files Browse the repository at this point in the history
… version used across different environments)
  • Loading branch information
jycr committed Sep 2, 2024
1 parent 753cdc2 commit b1abd7b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/_BACKUP_manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
git config user.name 'github-actions[bot]'
git config user.email ''
- name: Maven release
run: mvn release:prepare -B -ff -DtagNameFormat=@{project.version}
run: ./mvnw release:prepare -B -ff -DtagNameFormat=@{project.version}
- name: Maven release clean
run: mvn release:clean
run: ./mvnw release:clean
- name: Get last TAG
run: echo "LAST_TAG=$(git tag --sort=-version:refname | head -n 1)" >> $GITHUB_ENV
- name: Extract release notes
Expand All @@ -44,7 +44,7 @@ jobs:
with:
ref: ${{ env.LAST_TAG }}
- name: Build project
run: mvn -e -B clean package -DskipTests
run: ./mvnw -e -B clean package -DskipTests
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Verify
run: mvn -e -B verify
run: ./mvnw -e -B verify

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -57,4 +57,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecoCode-java
run: ./mvnw -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecoCode-java
2 changes: 1 addition & 1 deletion .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Build project
run: mvn -e -B clean package -DskipTests
run: ./mvnw -e -B clean package -DskipTests
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand Down
2 changes: 1 addition & 1 deletion tool_build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env sh

mvn clean package -DskipTests
./mvnw clean package -DskipTests
2 changes: 1 addition & 1 deletion tool_compile.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env sh

mvn clean compile
./mvnw clean compile
4 changes: 2 additions & 2 deletions tool_release_1_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
###

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

sleep 2

# clean temporary files
mvn release:clean
./mvnw release:clean

0 comments on commit b1abd7b

Please sign in to comment.