Edwin Kempin | 67e09dc | 2012-07-23 10:46:06 +0200 | [diff] [blame] | 1 | Making a Release of a Gerrit Subproject / Core Plugin |
| 2 | ===================================================== |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 3 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 4 | [[make-snapshot]] |
| 5 | Make a Snapshot |
| 6 | --------------- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 7 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 8 | * Only for plugins: |
| 9 | ** In the `pom.xml` update the Gerrit version under `properties` > |
| 10 | `Gerrit-ApiVersion` to the version of the new Gerrit |
| 11 | release. |
| 12 | ** Make sure that the URL for the Maven repository with the id |
| 13 | `gerrit-api-repository` in the `pom.xml` is correct. |
| 14 | + |
| 15 | If `Gerrit-ApiVersion` references a released Gerrit version it must be |
Shawn Pearce | d500500 | 2013-06-21 11:01:45 -0700 | [diff] [blame] | 16 | `https://gerrit-api.stoarge.googleapis.com/release/`, if |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 17 | `Gerrit-ApiVersion` references a snapshot Gerrit version it must be |
Shawn Pearce | d500500 | 2013-06-21 11:01:45 -0700 | [diff] [blame] | 18 | `https://gerrit-api.storage.googleapis.com/snapshot/`. |
Shawn O. Pearce | 216b2e1 | 2012-06-05 17:53:13 -0700 | [diff] [blame] | 19 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 20 | * Build the latest snapshot and install it into the local Maven |
| 21 | repository: |
| 22 | + |
| 23 | ==== |
| 24 | mvn clean install |
| 25 | ==== |
| 26 | |
| 27 | * Test Gerrit with this snapshot locally |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 28 | |
| 29 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 30 | Publish Snapshot |
| 31 | ---------------- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 32 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 33 | If a Snapshot for a Subproject was created that should be referenced by |
| 34 | Gerrit while current Gerrit development is ongoing, this Snapshot needs |
| 35 | to be published. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 36 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 37 | * Make sure you have done the configuration needed for deployment: |
| 38 | ** link:dev-release-deploy-config.html#deploy-configuration-settings-xml[ |
| 39 | Configuration in Maven `settings.xml`] |
| 40 | ** link:dev-release-deploy-config.html#deploy-configuration-subprojects[ |
| 41 | Configuration for Subprojects in `pom.xml`] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 42 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 43 | * Deploy the new snapshot: |
| 44 | + |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 45 | ==== |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 46 | mvn deploy |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 47 | ==== |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 48 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 49 | * Change the version in the Gerrit parent `pom.xml` for the Subproject |
| 50 | to the `SNAPSHOT` version |
| 51 | + |
| 52 | When Gerrit gets released, a release of the Subproject has to be done |
| 53 | and Gerrit has to reference the released Subproject version. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 54 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 55 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 56 | [[prepare-release]] |
| 57 | Prepare the Release |
| 58 | ------------------- |
| 59 | |
| 60 | * link:#make-snapshot[First create (and test) the latest snapshot for |
| 61 | the subproject/plugin] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 62 | |
Edwin Kempin | 67e09dc | 2012-07-23 10:46:06 +0200 | [diff] [blame] | 63 | * Update the top level `pom.xml` in the subproject/plugin to reflect |
| 64 | the new project version (the exact value of the tag you will create |
| 65 | below) |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 66 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 67 | * Create the Release Tag |
| 68 | + |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 69 | ==== |
| 70 | git tag -a -m "prolog-cafe 1.3" v1.3 |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 71 | ==== |
| 72 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 73 | * Build and install into local Maven repository: |
| 74 | + |
| 75 | ==== |
| 76 | mvn clean install |
| 77 | ==== |
| 78 | |
| 79 | |
| 80 | [[publish-release]] |
| 81 | Publish the Release |
| 82 | ------------------- |
| 83 | |
| 84 | * Make sure you have done the configuration needed for deployment: |
| 85 | ** link:dev-release-deploy-config.html#deploy-configuration-settings-xml[ |
| 86 | Configuration in Maven `settings.xml`] |
| 87 | ** Configuration in `pom.xml` for |
| 88 | link:dev-release-deploy-config.html#deploy-configuration-subprojects[Subprojects] or |
| 89 | link:dev-release-deploy-config.html#deploy-configuration-core-plugins[Core Plugins] |
| 90 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 91 | * Deploy the new release: |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 92 | + |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 93 | ==== |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 94 | mvn deploy |
| 95 | ==== |
| 96 | |
| 97 | * Push the pom change(s) to the project's repository |
| 98 | `refs/for/<master|stable>` |
| 99 | |
| 100 | * Push the Release Tag |
| 101 | + |
| 102 | ==== |
| 103 | git push gerrit-review refs/tags/v1.3:refs/tags/v1.3 |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 104 | ==== |
| 105 | |
| 106 | |
| 107 | GERRIT |
| 108 | ------ |
| 109 | Part of link:index.html[Gerrit Code Review] |