David Pursehouse | b8fbb8a | 2016-08-31 09:33:03 +0900 | [diff] [blame] | 1 | = Making a Snapshot Release of JGit |
Saša Živkov | 38fe2fc | 2016-02-18 14:00:06 +0100 | [diff] [blame] | 2 | |
| 3 | This step is only necessary if we need to create an unofficial JGit |
| 4 | snapshot release and publish it to the |
| 5 | link:https://developers.google.com/storage/[Google Cloud Storage]. |
| 6 | |
David Pursehouse | b8fbb8a | 2016-08-31 09:33:03 +0900 | [diff] [blame] | 7 | [[prepare-environment]] |
| 8 | == Prepare the Maven Environment |
| 9 | |
| 10 | First, make sure you have done the necessary |
| 11 | link:dev-release-deploy-config.html#deploy-configuration-settings-xml[ |
| 12 | configuration in Maven `settings.xml`]. |
| 13 | |
| 14 | To apply the necessary settings in JGit's `pom.xml`, follow the instructions |
| 15 | in link:dev-release-deploy-config.html#deploy-configuration-subprojects[ |
| 16 | Configuration for Subprojects in `pom.xml`], or apply the provided diff by |
| 17 | executing the following command in the JGit workspace: |
| 18 | |
| 19 | ---- |
| 20 | git apply /path/to/gerrit/tools/jgit-snapshot-deploy-pom.diff |
| 21 | ---- |
Saša Živkov | 38fe2fc | 2016-02-18 14:00:06 +0100 | [diff] [blame] | 22 | |
| 23 | [[prepare-release]] |
| 24 | == Prepare the Release |
| 25 | |
David Pursehouse | b8fbb8a | 2016-08-31 09:33:03 +0900 | [diff] [blame] | 26 | Since JGit has its own release process we do not push any release tags. Instead |
| 27 | we will use the output of `git describe` as the version of the current JGit |
| 28 | snapshot. |
| 29 | |
| 30 | In the JGit workspace, execute the following command: |
Saša Živkov | 38fe2fc | 2016-02-18 14:00:06 +0100 | [diff] [blame] | 31 | |
| 32 | ---- |
| 33 | ./tools/version.sh --release $(git describe) |
| 34 | ---- |
| 35 | |
Saša Živkov | 38fe2fc | 2016-02-18 14:00:06 +0100 | [diff] [blame] | 36 | [[publish-release]] |
| 37 | == Publish the Release |
| 38 | |
David Pursehouse | b8fbb8a | 2016-08-31 09:33:03 +0900 | [diff] [blame] | 39 | To deploy the new snapshot, execute the following command in the JGit |
| 40 | workspace: |
Saša Živkov | 38fe2fc | 2016-02-18 14:00:06 +0100 | [diff] [blame] | 41 | |
Saša Živkov | 38fe2fc | 2016-02-18 14:00:06 +0100 | [diff] [blame] | 42 | ---- |
| 43 | mvn deploy |
| 44 | ---- |
| 45 | |
| 46 | |
| 47 | GERRIT |
| 48 | ------ |
| 49 | Part of link:index.html[Gerrit Code Review] |
| 50 | |
| 51 | SEARCHBOX |
| 52 | --------- |