Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 1 | |
| 2 | |
| 3 | |
| 4 | Apache Felix Dependency Manager Release Guide |
| 5 | This document describes how to do a source release. It is based on the Release FAQ [1] |
| 6 | |
| 7 | Prerequisites |
| 8 | ============= |
| 9 | |
| 10 | To 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 | |
| 19 | Before you can start staging a release candidate, you must: |
| 20 | |
| 21 | * make sure there are no dependencies on snapshots/unreleased versions; |
Pierre De Rop | 6501bac | 2015-06-11 22:41:04 +0000 | [diff] [blame] | 22 | * 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 Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 25 | * create a tagged version of the sources in preparation of the release candidate. |
| 26 | |
Pierre De Rop | a00b620 | 2015-11-20 20:36:37 +0000 | [diff] [blame^] | 27 | Release only the necessary bundles |
Pierre De Rop | 6501bac | 2015-06-11 22:41:04 +0000 | [diff] [blame] | 28 | =================================== |
| 29 | |
| 30 | Click on the bndtools "Release workspace bundles", and release the bundles that have been modified and need to be released. |
| 31 | Don't release other unmodified bundles. |
Pierre De Rop | a00b620 | 2015-11-20 20:36:37 +0000 | [diff] [blame^] | 32 | Once done, under the shell prompt, go to the "cnf/releaserepo/" directory, svn remove the previous old released bundles, |
| 33 | and svn add the new released bundles. |
Pierre De Rop | 6501bac | 2015-06-11 22:41:04 +0000 | [diff] [blame] | 34 | refresh the repositories under bndtools, and commit. |
| 35 | |
| 36 | Create a tagged version |
| 37 | ======================= |
| 38 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 39 | Creating a tagged version of the sources can be done directly through svn (replace r<n> by the actual release number, like "r1"): |
| 40 | |
| 41 | svn 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 | |
| 43 | Staging a release candidate |
| 44 | =========================== |
| 45 | |
| 46 | Staging a release starts by checking out a tagged version of the sources (replace r<n> by the actual release number, like "r1"): |
| 47 | |
| 48 | svn co https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.dependencymanager-r<n> |
| 49 | |
| 50 | The 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 | |
| 53 | Use 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 Rop | a20b758 | 2015-03-05 07:30:49 +0000 | [diff] [blame] | 62 | create the staging: |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 63 | |
| 64 | $ ./gradlew makeStaging (this will create ./release/staging/ directory) |
| 65 | |
| 66 | Then you sign archives by invoking the following task: |
| 67 | |
| 68 | $ ./gradlew signStaging |
| 69 | |
| 70 | You 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 |
| 71 | https://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 | |
| 75 | Voting on the release |
| 76 | ===================== |
| 77 | |
| 78 | Start 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 | >>> |
| 81 | To: "Felix Developers List" <dev@felix.apache.org> |
| 82 | Subject: [VOTE] Release of Apache Felix Dependency Manager release r<n> |
| 83 | |
| 84 | Hi, |
| 85 | |
| 86 | We solved N issues in this release: |
| 87 | http://issues.apache.org/jira/... |
| 88 | |
| 89 | There are still some outstanding issues: |
| 90 | http://issues.apache.org/jira/... |
| 91 | |
| 92 | Staging repository: |
| 93 | https://dist.apache.org/repos/dist/dev/felix/apache-felix-dependencymanager-r<n>/ |
| 94 | |
| 95 | You can use this UNIX script to download the release and verify the signatures: |
| 96 | http://svn.apache.org/repos/asf/felix/trunk/dependencymanager/release/check_staged_release.sh |
| 97 | |
| 98 | Usage: |
| 99 | sh check_staged_release.sh r<n> /tmp/felix-staging |
| 100 | |
| 101 | This script, unlike the original Felix check_stage_release.sh, will download staging from https://dist.apache.org/repos/dist/dev/felix instead of |
| 102 | http://repository.apache.org/content/repositories. |
| 103 | |
| 104 | |
| 105 | Please vote to approve this release: |
| 106 | |
| 107 | [ ] +1 Approve the release |
| 108 | [ ] -1 Veto the release (please provide specific comments) |
| 109 | |
| 110 | This vote will be open for 72 hours. |
| 111 | <<< |
| 112 | |
| 113 | Promoting the release: |
| 114 | ===================== |
| 115 | |
| 116 | Move the artifacts from the development area to the final release location at |
| 117 | https://dist.apache.org/repos/dist/release/felix by invoking the following target: |
| 118 | |
| 119 | $ ./gradlew promoteToRelease |
| 120 | |
Pierre De Rop | a20b758 | 2015-03-05 07:30:49 +0000 | [diff] [blame] | 121 | Then Edit the ./release/build.gradle script, increment the "ext.dmRelease" property, and commit. |
| 122 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 123 | Cancelling the release |
| 124 | ====================== |
| 125 | |
| 126 | $ ./gradlew deleteFromStaging |
| 127 | |
| 128 | [1] http://www.apache.org/dev/release.html |
| 129 | [2] http://www.apache.org/dist/felix/KEYS |