Release instructions.
(a) - denotes something that is a candidate for automation
In-progress release notes during the cycle of development should have been written in release-notes.md
.
Review these notes and edit as needed. You can use Markdown.
The only truly mandatory requirement is to mention all contributors.
When you've got the release announcement set, copy it to the description of the GitHub milestone, but don't close the milestone yet.
- Ensure there is a next (version after what is being released) milestone on GitHub with a date set (1st of next month)
- Check that there are no outstanding reviews for commits for the current versions, or at least that any issues don't block the release
- Check that there are no outstanding issues/pull requests for the development version (either implement or move them to next milestone)
- (a) Ensure that there are no -SNAPSHOT dependencies (or if there are, that there is good reason for them)
- Ensure the the build is passing (i.e. run
./gradlew clean build
)
- (a) Update the
version
property inratpack.gradle
(i.e. drop the -SNAPSHOT) - Ensure the the build is still passing (i.e. run
./gradlew clean build
) - really isn't needed, but doesn't hurt - Commit with message “Version «number»”
- Tag commit with name “v«number»” (don't push yet)
- Build and upload the binaries:
./gradlew artifactoryPublish
- See below for credential requirements - Promote the binaries from oss.jfrog.org to Bintray and Maven Central
- Go to https://oss.jfrog.org/webapp/builds/ratpack/?6
- To log in use your Bintray username and Bintray API key
- Find the build you just uploaded (you should be able to tell by the version number). If you sort by "Time Built" desc it will be at the top of the list
- Take the buildNumber and run
./gradlew bintrayPublish -PbuildNumber=«buildNumber» -i
- Confirm the publish in Bintray - The link to the bintray page is given on the success page of the previous step. Just in case it's: https://bintray.com/ratpack/maven/ratpack/«version»/view/files/io/ratpack
- Publish to Maven central - click the 'Maven Central' tab on the Bintray package page
- Enter your user/pass - this is your oss.sonatype.org credentials
- Click “Close repository when done”
- Click “Sync”
- Publish Lazybones templates to Bintray:
./gradlew publishAllTemplates
- See below for credential requirements. - Publish to Gradle Plugin Portal:
./gradlew gradlePluginPortalPublish -i
- See below for credential requirements.
If you run this task more than once you may need to delete the published templates in Bintray first.
- (a) Update
version
property inratpack.gradle
(i.e. increment the patch number and add -SNAPSHOT) - Update the
manualVersions
list inratpack-site.gradle
so the new manual is included in the site - (a) Update
release-notes.md
to remove the content specific to the freshly-completed release (i.e. set it back to a fresh template) - Commit with message 'Begin version «version»', and push (make sure you push the tag)
- Run
./gradlew clean artifactoryPublish
(to push the new snapshot snapshot, so it can be resolved) - Close the Milestone on GitHub
- Copy the release announcement to the GitHub tag description on the GitHub releases page and publish the release
- Get a tweet out about the release
- For all example projects (example-ratpack-gradle-java-app, example-ratpack-gradle-groovy-app, example-books):
- Update
master
branch to use the latest released version - Merge
latest
branch intomaster
to pick up any fixes for breaking changes in the released version
- Update
- Ability to edit milestones for the
ratpack/ratpack
GitHub project (it might be that only admins can do this, not sure) - Credentials for oss.jfrog.org
- This is your Bintray account - use the Bintray UI to ask for write permissions to the io.ratpack group in oss.jfrog.org
- GPG credentials/config
- We use the Gradle Signing Plugin to sign the artifacts (we don't let Bintray do this) - See the Gradle docs for how to set this up
- One gotcha is forgetting to distribute your public key. See here for more info. If you don't do this you will get problems when syncing to Maven central.
- oss.sonatype.org credentials
- The sync from Bintray to Central requires an account with oss.sonatype.org
- Create an account for oss.sonatype.org
- Add a comment to this JIRA ticket with your new account, asking for permission to publish to
io.ratpack
.
- Bintray credentials/config
- Lazybones templates are published to Bintray using your Bintray account. You need to be a member of the Ratpack organization with permission to publish to the Lazybones repo.
- You also need Bintray credentials to publish to the Gradle Plugin Portal repo. You need to be a member of the Ratpack organization with permission to publish to the gradle-plugins-meta repo.
- Create a gradle.properties file in the root of the Ratpack project and add properties for
ratpackBintrayUser
andratpackBintrayApiKey
with your Bintray details. This file does not get committed.