-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Release Process
(This is a note to self.)
- Update Copyright end year in all files
- Update the "next release" milestone to the version about to be pushed out
- Update
changelog.md
to ensure that all changes are referenced- check the "next release" milestone in github issues
- highlight any breaking changes
- update the "issues resolved" link
- Create a new "next release" milestone
- Update code snippets (maven configs) in
readme.md
with new current version number - Release jar to Maven Central (See Below)
- Push new JavaDoc to gh-pages branch (NOTE: is this done any more?)
- Announce new version to the world!
- Gitter
- Anywhere else!
This guide documents how to create a release of javaparser
on The Central Repository (old coordinates).
- You must be part of the Javaparser bintray team
- Click the link, login, then request access
- You must have done what the "set me up" button says on the team page
- "Set Me Up" -> "Uploading" (visible only after logging in) -> "Deploying with Maven"
- Setup your copy of
~/.m2/settings.xml
with your username and bintray api key - The
<distributionManagement>
section should already be in the mainpom.xml
- Setup your copy of
- "Set Me Up" -> "Uploading" (visible only after logging in) -> "Deploying with Maven"
- 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 (also found in the
<distributionManagement>
tag ofpom.xml
):- Group Id:
com.github.javaparser
- Project URL:
https://github.com/javaparser/javaparser
- SCM url:
https://github.com/javaparser/javaparser.git
- Group Id:
- You must have commit access to the JavaParser repo
- This is in order to be able to push tags during the release cycle (specifically, during the
release:prepare
phase
- This is in order to be able to push tags during the release cycle (specifically, during the
Note: In the future (perhaps v4?) we may switch to using the group id org.javaparser
per https://issues.sonatype.org/browse/OSSRH-13194
Before staging a release, you should be confident that the release will be in good working order.
- This can be achieved by running the test suite using
mvn -e clean test
. - Alternatively, the test suite will run as part of the
release:prepare
phase.
$ mvn -e release:clean
$ mvn -e release:prepare
You will be asked how the release version should be named and what name should be used to create a new tag.
Optionally, you may use mvn -e --batch-mode release:prepare
to use the default version numbers.
Note: As part of the release:prepare
phase, a new git tag will be created and pushed to the default remote repository.
$ mvn release:perform
- Maven will checkout the tag you just prepared before.
- It will build and deploy the project to Bintray.
On Bintray you can find a button to send the release to Maven Central.
Read the Usage Guide in detail, because everything important is described in detail there.
Website: JavaParser.org Chat: Gitter.im/JavaParser/JavaParser Free eBook: leanpub.com/JavaParserVisited
- Home
- Migration Guide (2.5.1 to 3.0.0)
- Migration Guide (3.25.10 to 3.26.0)
- Inspecting an AST
JavaParser
vsStaticJavaParser
Pro* jectRoot
vsSourceRoot
(Analysing a Whole Project)- Parsing Java Comments
- Getting started with JavaParser: analyzing Java Code programmatically
- Observers for AST nodes in JavaParser
- Implementing Lexical Preservation for JavaParser
- JavaParser’s logging framework in one file
- Making strings in JavaParser
- The quick and the full API of JavaParser
- Less Casting in JavaParser
- Parse error recovery
- Inverting ifs in JavaParser
- Code generation and Maven in JavaParser
- Semantic validations in JavaParser
- Setting Java 8, 9, 10, etc
- Analysing an entire project in one go
- Pragmatic Versioning
- Testing JavaParser Code
- Functional Tree Traversal
- Coding Guidelines
- Eclipse Project Setup Guide
- Code Style / Architecture
- Build Process
- Release Process
Visit the JavaParser blog
Download the JavaParserVisited book (free!).
Join the chatroom on Gitter!