Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = Making a Release of a Gerrit Subproject |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 2 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 3 | [[make-snapshot]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 4 | == Make a Snapshot |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 5 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 6 | * Build the latest snapshot and install it into the local Maven |
| 7 | repository: |
| 8 | + |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 9 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 10 | mvn clean install |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 11 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 12 | |
| 13 | * Test Gerrit with this snapshot locally |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 14 | |
| 15 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 16 | == Publish Snapshot |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 17 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 18 | If a snapshot for a subproject was created that should be referenced by |
| 19 | Gerrit while current Gerrit development is ongoing, this snapshot needs |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 20 | to be published. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 21 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 22 | * Make sure you have done the configuration needed for deployment: |
| 23 | ** link:dev-release-deploy-config.html#deploy-configuration-settings-xml[ |
| 24 | Configuration in Maven `settings.xml`] |
| 25 | ** link:dev-release-deploy-config.html#deploy-configuration-subprojects[ |
| 26 | Configuration for Subprojects in `pom.xml`] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 27 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 28 | * Deploy the new snapshot: |
| 29 | + |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 30 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 31 | mvn deploy |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 32 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 33 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 34 | * Change the `id`, `bin_sha1`, and `src_sha1` values in the `maven_jar` |
| 35 | for the subproject in `/lib/BUCK` to the `SNAPSHOT` version. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 36 | + |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 37 | When Gerrit gets released, a release of the subproject has to be done |
| 38 | and Gerrit has to reference the released subproject version. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 39 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 40 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 41 | [[prepare-release]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 42 | == Prepare the Release |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 43 | |
| 44 | * link:#make-snapshot[First create (and test) the latest snapshot for |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 45 | the subproject] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 46 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 47 | * Update the top level `pom.xml` in the subproject to reflect |
Edwin Kempin | 67e09dc | 2012-07-23 10:46:06 +0200 | [diff] [blame] | 48 | the new project version (the exact value of the tag you will create |
| 49 | below) |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 50 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 51 | * Create the Release Tag |
| 52 | + |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 53 | ---- |
| 54 | git tag -a -m "prolog-cafe 1.3" v1.3 |
| 55 | ---- |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 56 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 57 | * Build and install into local Maven repository: |
| 58 | + |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 59 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 60 | mvn clean install |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 61 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 62 | |
| 63 | |
| 64 | [[publish-release]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 65 | == Publish the Release |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 66 | |
| 67 | * Make sure you have done the configuration needed for deployment: |
| 68 | ** link:dev-release-deploy-config.html#deploy-configuration-settings-xml[ |
| 69 | Configuration in Maven `settings.xml`] |
| 70 | ** Configuration in `pom.xml` for |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 71 | link:dev-release-deploy-config.html#deploy-configuration-subprojects[subprojects] |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 72 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 73 | * Deploy the new release: |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 74 | + |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 75 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 76 | mvn deploy |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 77 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 78 | |
| 79 | * Push the pom change(s) to the project's repository |
| 80 | `refs/for/<master|stable>` |
| 81 | |
| 82 | * Push the Release Tag |
| 83 | + |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 84 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 85 | git push gerrit-review refs/tags/v1.3:refs/tags/v1.3 |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 86 | ---- |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 87 | |
| 88 | |
| 89 | GERRIT |
| 90 | ------ |
| 91 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 92 | |
| 93 | SEARCHBOX |
| 94 | --------- |