Skip to content

Commit

Permalink
Merge pull request #258 from sparsick/180-release-documentation
Browse files Browse the repository at this point in the history
#180: improve documentation about releasing
  • Loading branch information
sparsick authored Apr 11, 2021
2 parents 9113ab1 + b2f08fc commit e633bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,19 +659,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!
Expand Down
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#<version>$release_version</version>#<version>$new_version</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"
Expand Down

0 comments on commit e633bda

Please sign in to comment.