Skip to content

Commit

Permalink
Add minimal script for Maven central deployment
Browse files Browse the repository at this point in the history
* Copied the script from elucidation and added -r option
  to fix "read without -r will mangle backslashes" problem
  found by shellcheck (SC2162)

Fixes #221
  • Loading branch information
sleberknight committed Jun 10, 2020
1 parent 8d2a77c commit 9ecbe74
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 9ecbe74

Please sign in to comment.