-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ReleaseProcedure.txt
48 lines (29 loc) · 1.15 KB
/
ReleaseProcedure.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
The maven release plugin turned out to be too hard to handle.
So we do it manually.
# Ensure all has been committed
# Ensure it all works
mvn clean verify -PpackageForRelease
mvn clean
# Prepare the versions for the release
RELEASEVERSION=0.7
NEXTVERSION=0.8
# Creating and publishing the new Tagging
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${RELEASEVERSION}
# Update the top of the CHANGELOG.md
git status
git commit -m"Version ${RELEASEVERSION}" -a
# We must first tag it because the tag is generated into the code
git tag -a v${RELEASEVERSION} -m"Tag Version ${RELEASEVERSION}"
#mvn clean deploy -Prelease -Pdeploy-local
#VERIFY If this all looks good
# These two profiles are defined in ~/.m2/settings.xml
mvn clean deploy -PpackageForRelease -Prelease -PdeployToSonatype
# Now check SONATYPE
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${NEXTVERSION}-SNAPSHOT
# Update ReleaseProcedure.txt (versions near the top)
git commit -m"Start development for ${NEXTVERSION}" -a
git push
git push origin v${RELEASEVERSION}
#######################
# Publishing a SNAPSHOT version
mvn clean deploy -PpackageForRelease -PdeployToSonatype