ci(release): use Maven wrapper everywhere
MODIFY
.github/workflows/release.yaml
.github/workflows/release.yaml
@@ -23,7 +23,7 @@ jobs:
with:
node-version: 10
- name: Set up JDK 1.8
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v3
with:
java-version: 1.8
- name: Set up Gren
@@ -35,10 +35,6 @@ jobs:
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- - name: Check Setup
- run: |
- pwd
- mvn -version
- name: Set up settings.xml
run: |
mkdir -p /home/runner/.m2
@@ -104,15 +100,15 @@ jobs:
- name: Update Apiman *Parent* Release Version ${{ github.event.inputs.release-version }} in pom.xml
run: |
cd apiman/parent
- mvn -ntp clean install
- mvn -ntp versions:set -DnewVersion="${{ github.event.inputs.release-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
- mvn -ntp clean install
+ ../mvnw -ntp clean install
+ ../mvnw -ntp versions:set -DnewVersion="${{ github.event.inputs.release-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
+ ../mvnw -ntp clean install
- name: Update Apiman Release Version ${{ github.event.inputs.release-version }} in pom.xml
run: |
cd apiman
- mvn -ntp -N versions:update-parent -DparentVersion="[${{ github.event.inputs.release-version }}]" -DgenerateBackupPoms=false
- mvn -ntp versions:set -DnewVersion="${{ github.event.inputs.release-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
- mvn -ntp clean install
+ ./mvnw -ntp -N versions:update-parent -DparentVersion="[${{ github.event.inputs.release-version }}]" -DgenerateBackupPoms=false
+ ./mvnw -ntp versions:set -DnewVersion="${{ github.event.inputs.release-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
+ ./mvnw -ntp clean install
- name: Update Apiman Version in Plugins Project
run: |
cd plugins
@@ -222,9 +218,9 @@ jobs:
- name: Deploy Apiman to Maven Central
run: |
cd apiman
- mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
+ ./mvnw deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
cd parent
- mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
+ ./mvnw deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
# Tag and release Apiman Plugins
- name: Tag and Release Apiman Plugins
run: |
@@ -235,7 +231,7 @@ jobs:
- name: Deploy Apiman Plugins to Maven Central
run: |
cd plugins
- mvn deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
+ ./mvnw deploy --batch-mode -DskipTests -T2C -Prelease --settings /home/runner/.m2/settings.xml
# Build and push new Docker images
- name: Login to DockerHub Registry
@@ -266,17 +262,17 @@ jobs:
- name: Update Apiman Parent Next Snapshot Version ${{ github.event.inputs.snapshot-version }} in pom.xml
run: |
cd apiman/parent
- mvn -ntp versions:set -DnewVersion="${{ github.event.inputs.snapshot-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
+ ../mvnw -ntp versions:set -DnewVersion="${{ github.event.inputs.snapshot-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
- name: Update Apiman Next Snapshot Version ${{ github.event.inputs.snapshot-version }} in pom.xml
run: |
cd apiman
- mvn -ntp versions:set -DnewVersion="${{ github.event.inputs.snapshot-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
- mvn -ntp versions:update-parent -DparentVersion="[${{ github.event.inputs.snapshot-version }}]" -DgenerateBackupPoms=false -DallowSnapshots=true
+ ./mvnw -ntp versions:set -DnewVersion="${{ github.event.inputs.snapshot-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
+ ./mvnw -ntp versions:update-parent -DparentVersion="[${{ github.event.inputs.snapshot-version }}]" -DgenerateBackupPoms=false -DallowSnapshots=true
- name: Update Apiman Plugins Next Snapshot Version ${{ github.event.inputs.snapshot-version }} in pom.xml
run: |
cd plugins
- mvn -ntp versions:set -DnewVersion="${{ github.event.inputs.snapshot-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
- mvn -ntp versions:update-parent -DparentVersion="[${{ github.event.inputs.snapshot-version }}]" -DgenerateBackupPoms=false -DallowSnapshots=true
+ ./mvnw -ntp versions:set -DnewVersion="${{ github.event.inputs.snapshot-version }}" -DgenerateBackupPoms=false -DprocessAllModules=true
+ ./mvnw -ntp versions:update-parent -DparentVersion="[${{ github.event.inputs.snapshot-version }}]" -DgenerateBackupPoms=false -DallowSnapshots=true
- name: Commit Changes for Apiman Next Snapshot Version ${{ github.event.inputs.snapshot-version }}
run: |
cd apiman

ci(release): use Maven wrapper everywhere