Skip to content
Danny van Bruggen edited this page Jul 18, 2016 · 5 revisions

Tasks

  1. Update Copyright end year in all files
  2. Make a list of changes - check the milestone in github
  3. Release jar to Maven Central (See Below)
  4. Update readme.md with new current version number
  5. Push new JavaDoc to gh-pages branch

Maven Release Process

This guide documents how to create a release of javaparser on The Central Repository.

Prerequisites

  1. You must be part of the Javaparser bintray team
  2. You must have done what the "set me up" button says on the team page. (Uploading, Deploying with Maven)
  3. You must be confirmed by Sonatype via an application to upload artifacts to the appropriate coordinates. See the guidelines here. You can see an example application for this project under https://issues.sonatype.org/browse/OSSRH-5465. In our case we use always the following criteria:
  • Group Id: com.github.javaparser
  • Project URL: https://github.com/javaparser/javaparser
  • SCM url: https://github.com/javaparser/javaparser.git

Stage a Release

First you need to prepare a release before uploading any artifact:

$ mvn release:clean
$ mvn release:prepare

You will be asked how the release version should be named and what name should be used to create a new tag.

Then stage the release:

$ mvn release:perform

Maven will checkout the tag you just prepared before. It will build and deploy the project to Bintray.

Promote a release

Outdated: To release the uploaded artifacts, open your favorite browser and go to https://oss.sonatype.org/. Sign in and close the corresponding repository. If the validation of the uploads is successful you're allowed to release them (promoting the artifacts to the public).

Something unclear?

Read the Usage Guide in detail, because everything important is described in detail there.

See extended Sonatype Release Guide

Clone this wiki locally