Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the release script to reusable steps
- Loading branch information
Showing
4 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -eu | ||
: ${1:? Usage: $0 DESCRIPTION} | ||
DESCRIPTION="$1" | ||
set -x | ||
|
||
# TODO: release OSSRH and push to GitHub automatically | ||
#mvn nexus-staging:release \ | ||
# --errors \ | ||
# -DaltStagingDirectory=staging \ | ||
# -DstagingDescription="$DESCRIPTION" | ||
|
||
set +x | ||
echo "" | ||
echo "Done. Next steps:" | ||
echo " open https://oss.sonatype.org/" | ||
echo " git push origin HEAD" | ||
echo " git push origin --tags" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -eu | ||
: ${1:? Usage: $0 DESCRIPTION} | ||
DESCRIPTION="$1" | ||
set -x | ||
|
||
mvn clean deploy \ | ||
--errors \ | ||
-Psonatype-oss-release \ | ||
-DaltDeploymentRepository="staging::default::file:staging" | ||
|
||
mvn nexus-staging:deploy-staged-repository \ | ||
--errors \ | ||
-DrepositoryDirectory=staging \ | ||
-DstagingDescription="$DESCRIPTION" |