Skip to content

Commit

Permalink
[GHA] Adjustments to maven builds to ensure maven using latest (wrapp…
Browse files Browse the repository at this point in the history
…er on the fly)
  • Loading branch information
hazendaz committed May 29, 2024
1 parent fc0b9de commit 69ed22e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
distribution: temurin
cache: 'maven'
- name: Download Maven Wrapper
run: mvn wrapper:wrapper "-Dmaven=3.9.6"
run: mvn wrapper:wrapper "-Dmaven=3.9.7"
- name: Build with Maven
run: ./mvnw -B -V -e "-Dstyle.color=always" verify -DskipFormat -DverifyFormat
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/sonatype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: 17
distribution: zulu
cache: 'maven'
- name: Download Maven Wrapper
run: mvn wrapper:wrapper "-Dmaven=3.9.7"
- name: Deploy to Sonatype
run: mvn deploy -DskipTests -B --settings ./.mvn/settings.xml
run: ./mvnw deploy -DskipTests -B --settings ./.mvn/settings.xml
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}

0 comments on commit 69ed22e

Please sign in to comment.