mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-09 15:09:23 +00:00
Revert to a working state
This commit is contained in:
46
.github/workflows/early-access.yaml
vendored
46
.github/workflows/early-access.yaml
vendored
@@ -30,7 +30,7 @@ env:
|
||||
jobs:
|
||||
build:
|
||||
name: 'Build with Graal on ${{ matrix.os }}'
|
||||
if: startsWith(github.event.head_commit.message, 'Updated CHANGELOG.md') != true && startsWith(github.event.head_commit.message, '[maven-release-plugin]') != true
|
||||
if: startsWith(github.event.head_commit.message, '[release] Release ') != true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -70,47 +70,5 @@ jobs:
|
||||
- name: 'Upload artifact'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: artifacts
|
||||
name: mvnd-${{ env.OS }}
|
||||
path: dist/target/mvnd-*.zip
|
||||
|
||||
early-access:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [build]
|
||||
# Only post early access releases when push to master
|
||||
if: false && ${{ !github.event.issue.pull_request }} && startsWith(github.ref, 'refs/heads/master')
|
||||
|
||||
steps:
|
||||
- name: 'Check out repository'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 'Download all build artifacts'
|
||||
uses: actions/download-artifact@v2
|
||||
|
||||
- name: 'Set up Java'
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: 'Cache Maven packages'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
- name: 'Release to GitHub'
|
||||
env:
|
||||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: ./mvnw -B --file pom.xml -pl :mvnd -DartifactsDir=artifacts jreleaser:release
|
||||
|
||||
- name: 'JReleaser output'
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: jreleaser-logs
|
||||
path: |
|
||||
target/jreleaser/trace.log
|
||||
target/jreleaser/output.properties
|
||||
|
95
.github/workflows/release-candidate-stage1.yml
vendored
95
.github/workflows/release-candidate-stage1.yml
vendored
@@ -1,95 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2017 Angelo Zerr and other contributors as
|
||||
# indicated by the @author tags.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
name: Release Candidate - Stage1
|
||||
|
||||
# manual trigger
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
GRAALVM_VERSION: '21.3.0'
|
||||
JAVA_VERSION: '17'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 'Build with Graal on ${{ matrix.os }}'
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
os: [ ubuntu-18.04, macOS-10.15, windows-2019 ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: 'Set vars'
|
||||
shell: bash
|
||||
run: |
|
||||
OS=$(echo '${{ runner.os }}' | awk '{print tolower($0)}')
|
||||
[[ $OS == 'ubuntu' ]] && echo "OS=linux" >> $GITHUB_ENV || echo "OS=$OS" >> $GITHUB_ENV
|
||||
[[ $OS == 'macos' ]] && echo "OS=darwin" >> $GITHUB_ENV || echo "OS=$OS" >> $GITHUB_ENV
|
||||
echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||
|
||||
- name: 'Set up Graal'
|
||||
uses: graalvm/setup-graalvm@v1
|
||||
with:
|
||||
version: ${{ env.GRAALVM_VERSION }}
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
components: 'native-image'
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 'Build native distribution'
|
||||
run: ./mvnw clean verify -Pnative -Dmrm=false -B -ntp -e
|
||||
|
||||
- name: 'Upload daemon test logs'
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: daemon-test-logs-${{ env.OS }}
|
||||
path: integration-tests/target/mvnd-tests/**/daemon*.log
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [build]
|
||||
|
||||
steps:
|
||||
- name: 'Check out repository'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# required for triggering release-candidate-stage2
|
||||
token: ${{ secrets.GIT_ACCESS_TOKEN }}
|
||||
|
||||
- name: 'Set up Java'
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: 'Cache Maven packages'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
- name: 'Release'
|
||||
run: |
|
||||
./mvnw -B -ntp \
|
||||
-Drepository.url=https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git \
|
||||
release:prepare
|
65
.github/workflows/release-candidate-stage2.yml
vendored
65
.github/workflows/release-candidate-stage2.yml
vendored
@@ -1,65 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2017 Angelo Zerr and other contributors as
|
||||
# indicated by the @author tags.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
name: Release Candidate - Stage2
|
||||
|
||||
# push on tag but not on 'early-access'
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '!early-access'
|
||||
|
||||
env:
|
||||
GRAALVM_VERSION: '21.3.0'
|
||||
JAVA_VERSION: '17'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 'Check out repository'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 'Set up Java'
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: 'Cache Maven packages'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
- name: 'Release to GitHub'
|
||||
env:
|
||||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: ./mvnw -B --file pom.xml -pl :mvnd -Pprerelease jreleaser:release
|
||||
|
||||
- name: 'JReleaser output'
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: jreleaser-logs
|
||||
path: |
|
||||
target/jreleaser/trace.log
|
||||
target/jreleaser/output.properties
|
190
.github/workflows/release.yaml
vendored
190
.github/workflows/release.yaml
vendored
@@ -17,9 +17,13 @@
|
||||
|
||||
name: Release
|
||||
|
||||
# manual trigger
|
||||
on:
|
||||
# manual trigger
|
||||
workflow_dispatch:
|
||||
# build on new tags
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
env:
|
||||
GRAALVM_VERSION: '21.3.0'
|
||||
@@ -55,14 +59,7 @@ jobs:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 'Build native distribution'
|
||||
run: ./mvnw clean verify -Pnative -Dmrm=false -B -ntp -e
|
||||
|
||||
- name: 'Upload daemon test logs'
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: daemon-test-logs-${{ env.OS }}
|
||||
path: integration-tests/target/mvnd-tests/**/daemon*.log
|
||||
run: ./mvnw clean verify -Pnative -Dmrm=false -B -ntp -e -DskipTests
|
||||
|
||||
- name: 'Upload artifact'
|
||||
uses: actions/upload-artifact@v2
|
||||
@@ -70,9 +67,44 @@ jobs:
|
||||
name: artifacts
|
||||
path: dist/target/mvnd-*.zip
|
||||
|
||||
source:
|
||||
name: 'Build source distributions'
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: 'Check out repository'
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: 'Set vars'
|
||||
shell: bash
|
||||
run: |
|
||||
OS=$(echo '${{ runner.os }}' | awk '{print tolower($0)}')
|
||||
[[ $OS == 'ubuntu' ]] && echo "OS=linux" >> $GITHUB_ENV || echo "OS=$OS" >> $GITHUB_ENV
|
||||
[[ $OS == 'macos' ]] && echo "OS=darwin" >> $GITHUB_ENV || echo "OS=$OS" >> $GITHUB_ENV
|
||||
echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||
|
||||
- name: 'Set up Graal'
|
||||
uses: graalvm/setup-graalvm@v1
|
||||
with:
|
||||
version: ${{ env.GRAALVM_VERSION }}
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
components: 'native-image'
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 'Build native distribution'
|
||||
run: ./mvnw clean verify -Psource-distribution -pl :mvnd -Dmrm=false -B -ntp -e
|
||||
|
||||
- name: 'Upload artifact'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: artifacts
|
||||
path: |
|
||||
target/mvnd-*-src.zip
|
||||
target/mvnd-*-src.tar.gz
|
||||
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [build]
|
||||
needs: [build, source]
|
||||
|
||||
steps:
|
||||
- name: 'Check out repository'
|
||||
@@ -96,19 +128,129 @@ jobs:
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
|
||||
- name: 'Release to GitHub'
|
||||
env:
|
||||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
|
||||
JRELEASER_SDKMAN_CONSUMER_KEY: ${{ secrets.SDKMAN_CONSUMER_KEY }}
|
||||
JRELEASER_SDKMAN_CONSUMER_TOKEN: ${{ secrets.SDKMAN_CONSUMER_TOKEN }}
|
||||
run: ./mvnw -B --file pom.xml -pl :mvnd -Prelease -DartifactsDir=artifacts jreleaser:full-release
|
||||
- name: ls -R
|
||||
run: ls -R
|
||||
|
||||
- name: 'JReleaser output'
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Set environment
|
||||
run: |
|
||||
echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||
|
||||
- name: Compute sha256 checksums
|
||||
run: |
|
||||
sha256sum artifacts/mvnd-${{ env.VERSION }}-linux-amd64.zip | cut -d ' ' -f 1 > artifacts/mvnd-${{ env.VERSION }}-linux-amd64.zip.sha256
|
||||
sha256sum artifacts/mvnd-${{ env.VERSION }}-darwin-amd64.zip | cut -d ' ' -f 1 > artifacts/mvnd-${{ env.VERSION }}-darwin-amd64.zip.sha256
|
||||
sha256sum artifacts/mvnd-${{ env.VERSION }}-windows-amd64.zip | cut -d ' ' -f 1 > artifacts/mvnd-${{ env.VERSION }}-windows-amd64.zip.sha256
|
||||
sha256sum artifacts/mvnd-${{ env.VERSION }}-src.zip | cut -d ' ' -f 1 > artifacts/mvnd-${{ env.VERSION }}-src.zip.sha256
|
||||
sha256sum artifacts/mvnd-${{ env.VERSION }}-src.tar.gz | cut -d ' ' -f 1 > artifacts/mvnd-${{ env.VERSION }}-src.tar.gz.sha256
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: jreleaser-logs
|
||||
path: |
|
||||
target/jreleaser/trace.log
|
||||
target/jreleaser/output.properties
|
||||
tag_name: ${{ env.VERSION }}
|
||||
release_name: ${{ env.VERSION }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Deploy mvnd-src.zip
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-src.zip
|
||||
asset_name: mvnd-${{ env.VERSION }}-src.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Deploy mvnd-src.zip.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-src.zip.sha256
|
||||
asset_name: mvnd-${{ env.VERSION }}-src.zip.sha256
|
||||
asset_content_type: text/plain
|
||||
|
||||
- name: Deploy mvnd-src.tar.gz
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-src.tar.gz
|
||||
asset_name: mvnd-${{ env.VERSION }}-src.tar.gz
|
||||
asset_content_type: application/tar.gz
|
||||
|
||||
- name: Deploy mvnd-src.tar.gz.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-src.tar.gz.sha256
|
||||
asset_name: mvnd-${{ env.VERSION }}-src.tar.gz.sha256
|
||||
asset_content_type: text/plain
|
||||
|
||||
- name: Deploy mvnd-linux-amd64.zip
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-linux-amd64.zip
|
||||
asset_name: mvnd-${{ env.VERSION }}-linux-amd64.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Deploy mvnd-linux-amd64.zip.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-linux-amd64.zip.sha256
|
||||
asset_name: mvnd-${{ env.VERSION }}-linux-amd64.zip.sha256
|
||||
asset_content_type: text/plain
|
||||
|
||||
- name: Deploy mvnd-darwin-amd64.zip
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-darwin-amd64.zip
|
||||
asset_name: mvnd-${{ env.VERSION }}-darwin-amd64.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Deploy mvnd-darwin-amd64.zip.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-darwin-amd64.zip.sha256
|
||||
asset_name: mvnd-${{ env.VERSION }}-darwin-amd64.zip.sha256
|
||||
asset_content_type: text/plain
|
||||
|
||||
- name: Deploy mvnd-windows-amd64.zip
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-windows-amd64.zip
|
||||
asset_name: mvnd-${{ env.VERSION }}-windows-amd64.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Deploy mvnd-windows-amd64.zip.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: artifacts/mvnd-${{ env.VERSION }}-windows-amd64.zip.sha256
|
||||
asset_name: mvnd-${{ env.VERSION }}-windows-amd64.zip.sha256
|
||||
asset_content_type: text/plain
|
||||
|
||||
|
54
.github/workflows/update-changelog.yml
vendored
54
.github/workflows/update-changelog.yml
vendored
@@ -1,54 +0,0 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
name: Mvnd Changelog
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Run at 3 during night
|
||||
- cron: '0 3 * * *'
|
||||
|
||||
jobs:
|
||||
generate_changelog:
|
||||
runs-on: ubuntu-latest
|
||||
name: Generate changelog for master branch
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Generate changelog
|
||||
uses: charmixer/auto-changelog-action@v1.2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Commit files
|
||||
env:
|
||||
CI_USER: "github-actions[bot]"
|
||||
CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
run: |
|
||||
git config --local user.email "$CI_EMAIL"
|
||||
git config --local user.name "$CI_USER"
|
||||
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && $(echo "push=1" >> $GITHUB_ENV) || echo "No changes to CHANGELOG.md"
|
||||
|
||||
- name: Push changes
|
||||
if: env.push == 1
|
||||
env:
|
||||
CI_USER: "github-actions[bot]"
|
||||
CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git push "https://$CI_USER:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:master
|
@@ -25,11 +25,14 @@ git checkout master
|
||||
git fetch upstream
|
||||
git reset --hard upstream/master
|
||||
mvn versions:set -DnewVersion=$VERSION
|
||||
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator \
|
||||
--user apache --project maven-mvnd --token GITHUB_TOKEN
|
||||
git add -A
|
||||
git commit -m "Release $VERSION"
|
||||
git commit -m "[release] Release $VERSION"
|
||||
git tag $VERSION
|
||||
git push upstream $VERSION
|
||||
# Pushing a tag will trigger the CI to build the release and publish the artifacts on https://github.com/mvndaemon/mvnd/releases
|
||||
# Pushing a tag will trigger the CI to build the release and publish
|
||||
# the artifacts on https://github.com/mvndaemon/mvnd/releases
|
||||
|
||||
mvn versions:set -DnewVersion=$NEXT_VERSION
|
||||
git add -A
|
||||
|
149
pom.xml
149
pom.xml
@@ -77,15 +77,6 @@
|
||||
<takari-lifecycle.version>1.13.9</takari-lifecycle.version>
|
||||
<takari-provisio.version>1.0.19</takari-provisio.version>
|
||||
|
||||
<jreleaser.version>1.0.0</jreleaser.version>
|
||||
<jreleaser.prerelease>false</jreleaser.prerelease>
|
||||
<jreleaser.upload.assets>ALWAYS</jreleaser.upload.assets>
|
||||
<jreleaser.distribution.active>ALWAYS</jreleaser.distribution.active>
|
||||
<jreleaser.overwrite>false</jreleaser.overwrite>
|
||||
<jreleaser.update>false</jreleaser.update>
|
||||
<jreleaser.brew.active>NEVER</jreleaser.brew.active>
|
||||
<jreleaser.sdkman.active>NEVER</jreleaser.sdkman.active>
|
||||
|
||||
<javassist.version>3.27.0-GA</javassist.version>
|
||||
</properties>
|
||||
|
||||
@@ -550,127 +541,35 @@ limitations under the License.</inlineHeader>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.jreleaser</groupId>
|
||||
<artifactId>jreleaser-maven-plugin</artifactId>
|
||||
<version>${jreleaser.version}</version>
|
||||
<inherited>false</inherited>
|
||||
<configuration>
|
||||
<jreleaser>
|
||||
<environment>
|
||||
<properties>
|
||||
<artifactsDir>dist/target</artifactsDir>
|
||||
</properties>
|
||||
</environment>
|
||||
<project>
|
||||
<name>mvnd</name>
|
||||
<description>Maven Daemon</description>
|
||||
<license>Apache-2.0</license>
|
||||
<website>https://github.com/mvndaemon/mvnd</website>
|
||||
<authors>The Maven project</authors>
|
||||
<tags>maven,mvn,daemon,graalvm</tags>
|
||||
</project>
|
||||
<release>
|
||||
<github>
|
||||
<branch>master</branch>
|
||||
<skipTag>true</skipTag>
|
||||
<tagName>{{projectVersion}}</tagName>
|
||||
<releaseName>{{projectVersion}}</releaseName>
|
||||
<prerelease>
|
||||
<enabled>${jreleaser.prerelease}</enabled>
|
||||
</prerelease>
|
||||
<overwrite>${jreleaser.overwrite}</overwrite>
|
||||
<update>
|
||||
<enabled>${jreleaser.update}</enabled>
|
||||
</update>
|
||||
<uploadAssets>${jreleaser.upload.assets}</uploadAssets>
|
||||
<changelog>
|
||||
<formatted>ALWAYS</formatted>
|
||||
<format>- {{commitShortHash}} {{commitTitle}}</format>
|
||||
<contributors>
|
||||
<format>- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}</format>
|
||||
</contributors>
|
||||
<labelers>
|
||||
<labeler>
|
||||
<label>update-changelog</label>
|
||||
<title>Updated CHANGELOG.md</title>
|
||||
</labeler>
|
||||
</labelers>
|
||||
<categories>
|
||||
<category>
|
||||
<key>changelog</key>
|
||||
<title>changelog</title>
|
||||
<labels>update-changelog</labels>
|
||||
</category>
|
||||
</categories>
|
||||
<hide>
|
||||
<categories>changelog</categories>
|
||||
<contributors>GitHub,bot</contributors>
|
||||
</hide>
|
||||
</changelog>
|
||||
</github>
|
||||
</release>
|
||||
<distributions>
|
||||
<mvnd>
|
||||
<type>NATIVE_IMAGE</type>
|
||||
<active>${jreleaser.distribution.active}</active>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<path>{{artifactsDir}}/mvnd-{{projectVersion}}-linux-amd64.zip</path>
|
||||
<platform>linux-x86_64</platform>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<path>{{artifactsDir}}/mvnd-{{projectVersion}}-windows-amd64.zip</path>
|
||||
<platform>windows-x86_64</platform>
|
||||
</artifact>
|
||||
<artifact>
|
||||
<path>{{artifactsDir}}/mvnd-{{projectVersion}}-darwin-amd64.zip</path>
|
||||
<platform>osx-x86_64</platform>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
<brew>
|
||||
<active>${jreleaser.brew.active}</active>
|
||||
<multiPlatform>true</multiPlatform>
|
||||
<tap>
|
||||
<owner>mvndaemon</owner>
|
||||
<name>homebrew-mvnd</name>
|
||||
<commitMessage>Release {{tagName}}</commitMessage>
|
||||
</tap>
|
||||
</brew>
|
||||
<sdkman>
|
||||
<active>${jreleaser.sdkman.active}</active>
|
||||
</sdkman>
|
||||
</mvnd>
|
||||
</distributions>
|
||||
</jreleaser>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>prerelease</id>
|
||||
<properties>
|
||||
<jreleaser.prerelease>true</jreleaser.prerelease>
|
||||
<jreleaser.upload.assets>PRERELEASE</jreleaser.upload.assets>
|
||||
<jreleaser.distribution.active>NEVER</jreleaser.distribution.active>
|
||||
<jreleaser.overwrite>false</jreleaser.overwrite>
|
||||
<jreleaser.update>false</jreleaser.update>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<properties>
|
||||
<jreleaser.prerelease>false</jreleaser.prerelease>
|
||||
<jreleaser.upload.assets>RELEASE</jreleaser.upload.assets>
|
||||
<jreleaser.distribution.active>ALWAYS</jreleaser.distribution.active>
|
||||
<jreleaser.overwrite>false</jreleaser.overwrite>
|
||||
<jreleaser.update>true</jreleaser.update>
|
||||
<jreleaser.brew.active>RELEASE</jreleaser.brew.active>
|
||||
<jreleaser.sdkman.active>RELEASE</jreleaser.sdkman.active>
|
||||
</properties>
|
||||
<id>source-distribution</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>create-source-distribution</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/src.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
58
src/main/assembly/src.xml
Normal file
58
src/main/assembly/src.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
|
||||
<id>src</id>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
<format>tar.gz</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<excludes>
|
||||
<exclude>%regex[(?!((?!target/)[^/]+/)*src/).*target.*]</exclude>
|
||||
<exclude>**/*.log</exclude>
|
||||
<exclude>**/.gitignore</exclude>
|
||||
<exclude>**/.gitattributes</exclude>
|
||||
<exclude>init-git-svn.sh</exclude>
|
||||
<exclude>**/.repository/**</exclude>
|
||||
<exclude>**/.classpath</exclude>
|
||||
<exclude>**/.project</exclude>
|
||||
<exclude>**/.settings/**</exclude>
|
||||
<exclude>**/*.iml</exclude>
|
||||
<exclude>**/*.ipr</exclude>
|
||||
<exclude>**/.idea/**</exclude>
|
||||
<exclude>**/.DS_Store</exclude>
|
||||
<exclude>**/build/**</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<includes>
|
||||
<include>DEPENDENCIES</include>
|
||||
<!-- exclude the license and notice as they are not as accurate as the ones from above -->
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
|
Reference in New Issue
Block a user