-
Notifications
You must be signed in to change notification settings - Fork 118
Build&Release process for JDOM
JDOM requires a relatively involved build/release process. The following actions need to be synchronized:
- Build the code (with correct version numbers in the artifacts/JavaDoc, etc.
- Tag Git repo
- Add performance numbers to performance wiki page.
- Update code coverage and JUnit test reports in github pages.
- update Javadoc, index, news, and downloads on www.jdom.org website.
- release Mavan artifacts to maven-central.
- Pull the git repo: jdom-sites back to the jdom.org web server
create a build.properties file in the top JDOM folder (alongside the build.xml file) - using version 2.0.6 as an example....
version=2.0.6
Use Java 7 JDK version to build. The ant file does not yet support Java 8 JavaDoc changes.
Note that JDOM build from ant is designed to use source/build target versions of 1.5 for the source code:
ant clean maven
If you have set up the correct certificates as per the 'maven page'
Check the Javadoc that it contains the correct version numbers and that the Jar files and maven bundle is right:
build/maven/jdom2-2.0.6-bundle.jar
##Tag the repo
JDOM-2.0.6
push the tags to github as well (tags don't automatially get pushed).
##Run the PerfTest class
in contrib/src/java class org.jdom2.contrib.perf.PerfTest
I run it from eclipse. Just works. Copy/paste the last lines of output in to the gh-pages branch in performance.html
file. Edit the description to include the version details.
##Coverage, JUnit and APIDocs on Github pages.
Remove the three folders entirely from jdom2/ folder in gh-pages branch:
jdom2
apidocs
coverage
junit.report
Copy/paste the same folders from the JDOM2 build folder:
build
apidocs
coverage
junit.report
Commit, and push the gh-pages repository.
git add -A
git commit -m "JDOM 2.0.6" -a
git push
##Update JDOM site
Edit the index.html page.
- new announced version
- list of fixes.
Edit the news/index.html page.
- new announced version - add links to issues too.
Add the jdom zip file to dist/binary
Move the old jar to the archive:
git mv jdom-2.0.x.zip archive/
Update downloads/index.html to point to the new version of JDOM.
Remove the entire docs/apidocs folder
copy/paste the build/apidocs folder to the site.
Update the github repo with:
git add -A
git commit -m "JDOM 2.0.6" -a
git push
##Release the maven bundle
log in to oss.sonatype.org, and updload the bundle there.
Find it in the "Staging Repositories" section, and select it.
Click the 'Release' button.
##Pull the web site from jdom-site repo:
cd <DocumentRoot>
git fetch
git merge origin/master
[JDOM Home](http://www.jdom.org)
Stable Release
- [Download](http://www.jdom.org/downloads/index.html)
- [JavaDoc](http://www.jdom.org/docs/apidocs/index.html)
JDOM 2.x
- Overview
- Getting Started
- JDOM on Android
- [JavaDoc](http://hunterhacker.github.com/jdom/jdom2/apidocs/index.html)
- [Coverage](http://hunterhacker.github.com/jdom/jdom2/coverage/index.html)
- [UnitTests](http://hunterhacker.github.com/jdom/jdom2/junit.report/index.html)
- Features
- JDOM 1.x to JDOM 2.x
- Dependencies
Developing JDOM