From b2f08fc54fbcd77a6e9629424e9edbed0fc3de4a Mon Sep 17 00:00:00 2001 From: sparsick Date: Thu, 8 Apr 2021 11:09:27 +0200 Subject: [PATCH] #180: improve documentation about releasing --- README.md | 15 ++------------- release.sh | 2 ++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index a855ed2c..3d41bbcb 100644 --- a/README.md +++ b/README.md @@ -652,19 +652,8 @@ Run the release.sh script (syntax: master version, release version, new master v $ ./release.sh 1.3.0-SNAPSHOT 1.3.0 1.4.0-SNAPSHOT ``` -Run maven artifacts gpg sign (assumes that gpg is configured on the box) -``` -mvn verify -Pgpg -``` - -Tar all the artifacts in the target folder: -``` -tar -cvf p2.tar p2*.* -``` - -Upload p2.tar to bintray (selecting the explode options) and trigger the sync to maven central. - - +This script creates a git tag and deploys the Maven artifact to Maven Central. +It requires that PGP is configured as documented on Maven's [Guide to uploading artifacts to the Central Repository](https://maven.apache.org/repository/guide-central-repository-upload.html#guide-to-uploading-artifacts-to-the-central-repository) ### Who's behind it? Do you like the project? Star it on GitHub and follow me on Twitter! Thanks! diff --git a/release.sh b/release.sh index b4bb306f..a466d002 100755 --- a/release.sh +++ b/release.sh @@ -62,6 +62,8 @@ find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not git commit -a -m "$release_version release" git tag -a v$release_version -a -m "$release_version release" +mvn clean deploy -Prelease + find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#$release_version#$new_version#g" {} \; find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#projects.reficio.org/p2-maven-plugin/$release_version#projects.reficio.org/p2-maven-plugin/$new_version#g" {} \; git commit -a -m "Preparing $new_version iteration"