Skip to content

Commit

Permalink
Use Maven wrapper with fixed version to build
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Feb 10, 2023
1 parent 4fd06fb commit 6ddbf89
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
java-version: ${{matrix.java}}

- name: build with maven
run: mvn -B formatter:validate verify --file pom.xml
run: |
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.7 && ./mvnw -v
./mvnw -B formatter:validate verify --file pom.xml
- uses: actions/upload-artifact@v2
name: tck-report
Expand All @@ -62,7 +64,10 @@ jobs:
java-version: ${{matrix.java}}

- name: build with maven
run: mvn -B formatter:validate verify --file pom.xml
shell: bash
run: |
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.3
./mvnw -B formatter:validate verify --file pom.xml
docs:
needs: [build]
Expand All @@ -87,7 +92,8 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
cd documentation
mvn package
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.7 && ./mvnw -v
./mvnw package
pipx install pipenv
pipenv install
git fetch origin gh-pages --depth=1
Expand All @@ -113,4 +119,6 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
run: mvn -B verify --file pom.xml -Pcoverage javadoc:javadoc sonar:sonar -Dsonar.projectKey=smallrye_smallrye-config -Dsonar.login=$SONAR_TOKEN
run: |
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.7 && ./mvnw -v
./mvnw -B verify --file pom.xml -Pcoverage javadoc:javadoc sonar:sonar -Dsonar.projectKey=smallrye_smallrye-config -Dsonar.login=$SONAR_TOKEN
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,26 @@ jobs:
- name: maven release ${{steps.metadata.outputs.current-version}}
run: |
java -version
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.7 && ./mvnw -v
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output smallrye-sign.asc .github/release/smallrye-sign.asc.gpg
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg
gpg --fast-import --no-tty --batch --yes smallrye-sign.asc
git config --global user.name "SmallRye CI"
git config --global user.email "smallrye@googlegroups.com"
git checkout -b release
mvn -B release:prepare -Prelease,coverage -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml
./mvnw -B release:prepare -Prelease,coverage -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml
git checkout ${{github.base_ref}}
git rebase release
mvn -B release:perform -Prelease -s maven-settings.xml
./mvnw -B release:perform -Prelease -s maven-settings.xml
git push
git push --tags
- name: docs release ${{steps.metadata.outputs.current-version}}
run: |
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.7 && ./mvnw -v
git checkout -b ${{steps.metadata.outputs.current-version}} ${{steps.metadata.outputs.current-version}}
cd documentation
mvn package
./mvnw package
VERSION=${1:-"$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"}
pipx install pipenv
pipenv install
Expand All @@ -71,8 +73,9 @@ jobs:

- name: generate tck report
run: |
mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.8.7 && ./mvnw -v
cd target/checkout
mvn surefire-report:report
./mvnw surefire-report:report
mv testsuite/tck/target/tck-results.html $GITHUB_WORKSPACE
- uses: meeDamian/github-release@2.0
Expand Down

0 comments on commit 6ddbf89

Please sign in to comment.