blob: f1c781cc3d6e98c5db0ad975878ff842d87df37e [file] [log] [blame]
Pierre De Rop3a00a212015-03-01 09:27:46 +00001
2
3
4Apache Felix Dependency Manager Release Guide
5This document describes how to do a source release. It is based on the Release FAQ [1]
6
7Prerequisites
8=============
9
10To create a release you must:
11
12* Have Subversion installed on your system;
13* Have gpg installed on your system;
14* Have a public key added to the keys file, and committed to [2]
15* If you are using an http proxy, configure the following:
16
17 export GRADLE_OPTS="-Dhttps.proxyHost=www.somehost.org -Dhttps.proxyPort=8080"
18
19Before you can start staging a release candidate, you must:
20
21* make sure there are no dependencies on snapshots/unreleased versions;
Pierre De Rop6501bac2015-06-11 22:41:04 +000022* increment the ext.dmRelease parameter in release/build.gradle, if not already done, and commit.
23* check if release notes are up-to-date, in release/resources/changelog.txt
24* under bndtools, release (only) the bundles that needs to be released (using "Release workspace bundles" menu).
Pierre De Rop3a00a212015-03-01 09:27:46 +000025* create a tagged version of the sources in preparation of the release candidate.
26
Pierre De Ropa00b6202015-11-20 20:36:37 +000027Release only the necessary bundles
Pierre De Rop6501bac2015-06-11 22:41:04 +000028===================================
29
30Click on the bndtools "Release workspace bundles", and release the bundles that have been modified and need to be released.
31Don't release other unmodified bundles.
Pierre De Ropa00b6202015-11-20 20:36:37 +000032Once done, under the shell prompt, go to the "cnf/releaserepo/" directory, svn remove the previous old released bundles,
33and svn add the new released bundles.
Pierre De Rop6501bac2015-06-11 22:41:04 +000034refresh the repositories under bndtools, and commit.
35
36Create a tagged version
37=======================
38
Pierre De Rop3a00a212015-03-01 09:27:46 +000039Creating a tagged version of the sources can be done directly through svn (replace r<n> by the actual release number, like "r1"):
40
41svn copy https://svn.apache.org/repos/asf/felix/trunk/dependencymanager https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.dependencymanager-r<n> -m "Release of Apache Felix Dependency Manager r<n>"
42
43Staging a release candidate
44===========================
45
46Staging a release starts by checking out a tagged version of the sources (replace r<n> by the actual release number, like "r1"):
47
48svn co https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.dependencymanager-r<n>
49
50The next step is to build/test the software and create the release/staging/ directory (where the source/jars will be packaged):
51(replace r<n> by the actual release number, like "r1")
52
53Use a Java7 JDK
54
55$ cd org.apache.felix.dependencymanager-r<n>
56$ ./gradlew rat
57$ ./gradlew org.apache.felix.dependencymanager.annotation:jar
58$ ./gradlew jar
59$ ./gradlew test
60$ ./gradlew check
61
Pierre De Ropa20b7582015-03-05 07:30:49 +000062create the staging:
Pierre De Rop3a00a212015-03-01 09:27:46 +000063
64$ ./gradlew makeStaging (this will create ./release/staging/ directory)
65
66Then you sign archives by invoking the following task:
67
68$ ./gradlew signStaging
69
70You can upload the archives and the signatures to our development area, which we use to stage this release candidate. This development area can be found at
71https://dist.apache.org/repos/dist/dev/felix and adding files to it can be done using "svnpubsub" which is taken care of by the following target:
72
73$ ./gradlew commitToStaging
74
75Voting on the release
76=====================
77
78Start a vote on the dev@felix.apache.org list, for example (be sure to replace r<n> with the correct release number, like "r1"):
79
80>>>
81To: "Felix Developers List" <dev@felix.apache.org>
82Subject: [VOTE] Release of Apache Felix Dependency Manager release r<n>
83
84Hi,
85
86We solved N issues in this release:
87http://issues.apache.org/jira/...
88
89There are still some outstanding issues:
90http://issues.apache.org/jira/...
91
92Staging repository:
93https://dist.apache.org/repos/dist/dev/felix/apache-felix-dependencymanager-r<n>/
94
95You can use this UNIX script to download the release and verify the signatures:
96http://svn.apache.org/repos/asf/felix/trunk/dependencymanager/release/check_staged_release.sh
97
98Usage:
99sh check_staged_release.sh r<n> /tmp/felix-staging
100
101This script, unlike the original Felix check_stage_release.sh, will download staging from https://dist.apache.org/repos/dist/dev/felix instead of
102http://repository.apache.org/content/repositories.
103
104
105Please vote to approve this release:
106
107[ ] +1 Approve the release
108[ ] -1 Veto the release (please provide specific comments)
109
110This vote will be open for 72 hours.
111<<<
112
113Promoting the release:
114=====================
115
116Move the artifacts from the development area to the final release location at
117https://dist.apache.org/repos/dist/release/felix by invoking the following target:
118
119$ ./gradlew promoteToRelease
120
Pierre De Rop3a00a212015-03-01 09:27:46 +0000121Cancelling the release
122======================
123
124$ ./gradlew deleteFromStaging
125
126[1] http://www.apache.org/dev/release.html
127[2] http://www.apache.org/dist/felix/KEYS