Skip to content

Commit

Permalink
Add maven deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrohr committed Oct 20, 2020
1 parent 34db096 commit d6805cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions maven-central-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Deploy maven artifact in current directory into Maven central repository
# using maven-release-plugin goals

read -r -p "Really deploy to maven central repository (yes/no)? "

if [[ "$REPLY" == "yes" ]]; then
mvn release:clean release:prepare release:perform -e | tee maven-central-deploy.log
else
echo 'Exit without deploy'
fi

0 comments on commit d6805cb

Please sign in to comment.