Skip to content

Commit

Permalink
Added docs for version bumping and license headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwilson committed Dec 22, 2015
1 parent 06b2fb2 commit 2ecd34f
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 0 deletions.
82 changes: 82 additions & 0 deletions LICENSE-HEADERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
Release Process
===============
Introduction
------------
###Audience
- veraPDF development staff looking to release a new version;
- anyone interested in knowing how our release process works; and
- anyone who wants to change the version number or re-package our software.

###Pre-requisites
If you're still reading you'll also need an understanding and some experience using [Git](https://git-scm.com) and [Maven](https://maven.apache.org/). A quick brush up on [Semantic Versioning](http://semver.org/) and a typical [Git branching workflow](http://nvie.com/posts/a-successful-git-branching-model/) and we're ready to go.

Releasing
---------
The veraPDF software projects use the `MINOR` version number to indicate the development status of a particular version. An even number signifies a release version while an odd numbers are assigned to development prototypes. We increment the `MINOR` version number twice at each release milestone. The first increment is from the current odd numbered development version number to the new even release version.

You should use the latest version of the `integration` branch of the project. In the following example we'll start from scratch and assume:
- we're releasing `0.6.x` from development version `0.5.x`
- you're using a bash shell; and
- the `git remote` name for the repo used is `origin`.

###Getting to integration
Clone the repo:

git clone git@github.com:veraPDF/veraPDF-library.git
cd veraPDF-model-library

If you already have the git repository cloned then from the repo sub-tree:

git fetch origin

We want to be sure we have the latest changes:

git checkout -b integration origin/integration
git pull origin integration

Finally check that we have no uncommitted local changes, i.e:

git status

outputs:

On branch integration
Your branch is up-to-date with 'upstream/integration'.

nothing to commit, working directory clean

###Bumping minor
We bump the `MINOR` version on integration from `5` to `6` using Maven to set the version:

mvn versions:set -DnewVersion=0.6.0

Now check this has worked so:

git status

checks if we've changed anything, there should be some POM files and MANIFEST files that are altered, e.g:

On branch integration
Your branch is up-to-date with 'origin/integration'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: core/pom.xml
modified: feature-report/pom.xml
modified: gui/pom.xml
modified: installer/pom.xml
modified: legacy-types/pom.xml
modified: metadata-fixer/pom.xml
modified: model-implementation/pom.xml
modified: pom.xml
modified: verapdf-qa/pom.xml

no changes added to commit (use "git add" and/or "git commit -a")

or issuing:

cat pom.xml | grep version

will show the version numbers in the POM.
82 changes: 82 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
Release Process
===============
Introduction
------------
###Audience
- veraPDF development staff looking to release a new version;
- anyone interested in knowing how our release process works; and
- anyone who wants to change the version number or re-package our software.

###Pre-requisites
If you're still reading you'll also need an understanding and some experience using [Git](https://git-scm.com) and [Maven](https://maven.apache.org/). A quick brush up on [Semantic Versioning](http://semver.org/) and a typical [Git branching workflow](http://nvie.com/posts/a-successful-git-branching-model/) and we're ready to go.

Releasing
---------
The veraPDF software projects use the `MINOR` version number to indicate the development status of a particular version. An even number signifies a release version while an odd numbers are assigned to development prototypes. We increment the `MINOR` version number twice at each release milestone. The first increment is from the current odd numbered development version number to the new even release version.

###Getting to integration
You should use the latest version of the `integration` branch of the project. In the following example we'll start from scratch and assume:
- we're releasing `0.6.x` from development version `0.5.x`
- you're using a bash shell; and
- the `git remote` name for the repo used is `origin`.

Clone the repo:

git clone git@github.com:veraPDF/veraPDF-library.git
cd veraPDF-library

If you already have the git repository cloned then from the repo sub-tree:

git fetch origin

We want to be sure we have the latest changes:

git checkout -b integration origin/integration
git pull origin integration

Finally check that we have no uncommitted local changes, i.e:

git status

outputs:

On branch integration
Your branch is up-to-date with 'origin/integration'.

nothing to commit, working directory clean

###Bumping minor
We bump the `MINOR` version on integration from `5` to `6` using Maven to set the version:

mvn versions:set -DnewVersion=0.6.0

Now check this has worked so:

git status

checks if we've changed anything, there should be some POM files and MANIFEST files that are altered, e.g:

On branch integration
Your branch is up-to-date with 'origin/integration'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: core/pom.xml
modified: feature-report/pom.xml
modified: gui/pom.xml
modified: installer/pom.xml
modified: legacy-types/pom.xml
modified: metadata-fixer/pom.xml
modified: model-implementation/pom.xml
modified: pom.xml
modified: verapdf-qa/pom.xml

no changes added to commit (use "git add" and/or "git commit -a")

or issuing:

cat pom.xml | grep version

will show the version numbers in the POM.

0 comments on commit 2ecd34f

Please sign in to comment.