Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump org.apache.maven:maven-plugin-api from 3.2.5 to 3.9.9 #310

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ jobs:
env:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.github/settings.xml
steps:
- run: git config --global user.name "${{ vars.KOKUWA_IO_BOT_NAME }}"
- run: git config --global user.email "${{ vars.KOKUWA_IO_BOT_EMAIL }}"
- uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_ACTION_TOKEN }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 17
cache: maven
server-id: sonatype-nexus
server-username: SERVER_USERNAME
server-password: SERVER_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- run: mvn $MAVEN_ARGS dependency:go-offline
- run: mvn $MAVEN_ARGS deploy
env:
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
- run: mvn $MAVEN_ARGS site-deploy
env:
GIT_ACTION_TOKEN: ${{ secrets.GIT_ACTION_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
9 changes: 2 additions & 7 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 17
cache: maven
- run: mvn $MAVEN_ARGS dependency:go-offline
- run: mvn $MAVEN_ARGS verify
- run: mvn $MAVEN_ARGS site
- uses: actions/upload-artifact@v4
if: always()
with:
path: target/site
- run: mvn $MAVEN_ARGS verify -Dgpg.skip
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 17
cache: maven
server-id: sonatype-nexus
server-username: SERVER_USERNAME
Expand Down
48 changes: 48 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# https://just.systems/man/en/

_default:
@just --list --unsorted

set fallback

MVN := "mvn --batch-mode --color=always --no-transfer-progress -Dmaven.plugin.validation=NONE"

# Lints java, yaml and markdown files
@lint:
{{MVN}} --quiet tidy:check impsort:check formatter:validate
docker run --rm --read-only --volume $(pwd):/tmp pipelinecomponents/yamllint --config-file /tmp/.yamllint --strict /tmp
docker run --rm --read-only --volume $(pwd):/tmp tmknom/markdownlint --config /tmp/.markdownlint.yaml /tmp

# Fix java and markdown files
@fix:
{{MVN}} tidy:pom impsort:sort formatter:format
docker run --rm --read-only --user $(id -u):$(id -g) --volume $(pwd):/tmp tmknom/markdownlint --config /tmp/.markdownlint.yaml --fix /tmp

# Update maven dependencies
@update:
{{MVN}} versions:update-properties

# Build project without surefire/invoker tests
@build:
{{MVN}} verify -Dmaven.test.skip.exec -Dinvoker.skip

# Build project
@verify:
{{MVN}} verify

# Deploy jar to sonatype snapshot repository
@deploy:
{{MVN}} deploy -Pdeploy

# Run release as dry-run without tests
@release-dryrun:
{{MVN}} release:clean
{{MVN}} release:prepare -DpushChanges=false -DpreparationGoals="clean verify -Dmaven.test.skip -Dinvoker.skip"
{{MVN}} release:perform -DlocalCheckout -Dgoals="clean deploy -Dmaven.test.skip -Dinvoker.skip -DskipNexusStagingDeployMojo"
git fetch --prune --prune-tags # remove local tag

# Run release and publish to maven central
@release-run:
{{MVN}} release:clean
{{MVN}} release:prepare
{{MVN}} release:perform
Loading
Loading