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 | |
Pierre De Rop | 41a1a58 | 2015-06-04 20:41:36 +0000 | [diff] [blame^] | 21 | * increment the ext.dmRelease parameter in release/build.gradle, if not already done. |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 22 | * make sure there are no dependencies on snapshots/unreleased versions; |
| 23 | * create a tagged version of the sources in preparation of the release candidate. |
| 24 | |
| 25 | Creating a tagged version of the sources can be done directly through svn (replace r<n> by the actual release number, like "r1"): |
| 26 | |
| 27 | 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>" |
| 28 | |
| 29 | Staging a release candidate |
| 30 | =========================== |
| 31 | |
| 32 | Staging a release starts by checking out a tagged version of the sources (replace r<n> by the actual release number, like "r1"): |
| 33 | |
| 34 | svn co https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.dependencymanager-r<n> |
| 35 | |
| 36 | The next step is to build/test the software and create the release/staging/ directory (where the source/jars will be packaged): |
| 37 | (replace r<n> by the actual release number, like "r1") |
| 38 | |
| 39 | Use a Java7 JDK |
| 40 | |
| 41 | $ cd org.apache.felix.dependencymanager-r<n> |
| 42 | $ ./gradlew rat |
| 43 | $ ./gradlew org.apache.felix.dependencymanager.annotation:jar |
| 44 | $ ./gradlew jar |
| 45 | $ ./gradlew test |
| 46 | $ ./gradlew check |
| 47 | |
Pierre De Rop | a20b758 | 2015-03-05 07:30:49 +0000 | [diff] [blame] | 48 | create the staging: |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 49 | |
| 50 | $ ./gradlew makeStaging (this will create ./release/staging/ directory) |
| 51 | |
| 52 | Then you sign archives by invoking the following task: |
| 53 | |
| 54 | $ ./gradlew signStaging |
| 55 | |
| 56 | 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 |
| 57 | 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: |
| 58 | |
| 59 | $ ./gradlew commitToStaging |
| 60 | |
| 61 | Voting on the release |
| 62 | ===================== |
| 63 | |
| 64 | 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"): |
| 65 | |
| 66 | >>> |
| 67 | To: "Felix Developers List" <dev@felix.apache.org> |
| 68 | Subject: [VOTE] Release of Apache Felix Dependency Manager release r<n> |
| 69 | |
| 70 | Hi, |
| 71 | |
| 72 | We solved N issues in this release: |
| 73 | http://issues.apache.org/jira/... |
| 74 | |
| 75 | There are still some outstanding issues: |
| 76 | http://issues.apache.org/jira/... |
| 77 | |
| 78 | Staging repository: |
| 79 | https://dist.apache.org/repos/dist/dev/felix/apache-felix-dependencymanager-r<n>/ |
| 80 | |
| 81 | You can use this UNIX script to download the release and verify the signatures: |
| 82 | http://svn.apache.org/repos/asf/felix/trunk/dependencymanager/release/check_staged_release.sh |
| 83 | |
| 84 | Usage: |
| 85 | sh check_staged_release.sh r<n> /tmp/felix-staging |
| 86 | |
| 87 | This script, unlike the original Felix check_stage_release.sh, will download staging from https://dist.apache.org/repos/dist/dev/felix instead of |
| 88 | http://repository.apache.org/content/repositories. |
| 89 | |
| 90 | |
| 91 | Please vote to approve this release: |
| 92 | |
| 93 | [ ] +1 Approve the release |
| 94 | [ ] -1 Veto the release (please provide specific comments) |
| 95 | |
| 96 | This vote will be open for 72 hours. |
| 97 | <<< |
| 98 | |
| 99 | Promoting the release: |
| 100 | ===================== |
| 101 | |
| 102 | Move the artifacts from the development area to the final release location at |
| 103 | https://dist.apache.org/repos/dist/release/felix by invoking the following target: |
| 104 | |
| 105 | $ ./gradlew promoteToRelease |
| 106 | |
Pierre De Rop | a20b758 | 2015-03-05 07:30:49 +0000 | [diff] [blame] | 107 | Then Edit the ./release/build.gradle script, increment the "ext.dmRelease" property, and commit. |
| 108 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 109 | Cancelling the release |
| 110 | ====================== |
| 111 | |
| 112 | $ ./gradlew deleteFromStaging |
| 113 | |
| 114 | [1] http://www.apache.org/dev/release.html |
| 115 | [2] http://www.apache.org/dist/felix/KEYS |