blob: fcafea5a9d39e9be08a2ee21d59c83787a1a25cb [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= Making a Release of a Gerrit Subproject
Martin Fick21e278e2012-02-23 13:45:54 -07002
Edwin Kempinbb8e6252012-07-31 14:30:35 +02003[[make-snapshot]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08004== Make a Snapshot
Martin Fick21e278e2012-02-23 13:45:54 -07005
Edwin Kempinbb8e6252012-07-31 14:30:35 +02006* Build the latest snapshot and install it into the local Maven
7repository:
8+
Michael Ochmannb99feab2016-07-06 14:10:22 +02009----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020010 mvn clean install
Michael Ochmannb99feab2016-07-06 14:10:22 +020011----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020012
13* Test Gerrit with this snapshot locally
Martin Fick21e278e2012-02-23 13:45:54 -070014
15
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080016== Publish Snapshot
Martin Fick21e278e2012-02-23 13:45:54 -070017
David Pursehouse383a3182013-12-06 13:06:57 +090018If a snapshot for a subproject was created that should be referenced by
19Gerrit while current Gerrit development is ongoing, this snapshot needs
Edwin Kempinbb8e6252012-07-31 14:30:35 +020020to be published.
Martin Fick21e278e2012-02-23 13:45:54 -070021
Edwin Kempinbb8e6252012-07-31 14:30:35 +020022* Make sure you have done the configuration needed for deployment:
23** link:dev-release-deploy-config.html#deploy-configuration-settings-xml[
24Configuration in Maven `settings.xml`]
25** link:dev-release-deploy-config.html#deploy-configuration-subprojects[
26Configuration for Subprojects in `pom.xml`]
Martin Fick21e278e2012-02-23 13:45:54 -070027
Edwin Kempinbb8e6252012-07-31 14:30:35 +020028* Deploy the new snapshot:
29+
Michael Ochmannb99feab2016-07-06 14:10:22 +020030----
Martin Fick21e278e2012-02-23 13:45:54 -070031 mvn deploy
Michael Ochmannb99feab2016-07-06 14:10:22 +020032----
Martin Fick21e278e2012-02-23 13:45:54 -070033
David Pursehouse383a3182013-12-06 13:06:57 +090034* Change the `id`, `bin_sha1`, and `src_sha1` values in the `maven_jar`
35for the subproject in `/lib/BUCK` to the `SNAPSHOT` version.
Edwin Kempinbb8e6252012-07-31 14:30:35 +020036+
David Pursehouse383a3182013-12-06 13:06:57 +090037When Gerrit gets released, a release of the subproject has to be done
38and Gerrit has to reference the released subproject version.
Martin Fick21e278e2012-02-23 13:45:54 -070039
Martin Fick21e278e2012-02-23 13:45:54 -070040
Edwin Kempinbb8e6252012-07-31 14:30:35 +020041[[prepare-release]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080042== Prepare the Release
Edwin Kempinbb8e6252012-07-31 14:30:35 +020043
44* link:#make-snapshot[First create (and test) the latest snapshot for
David Pursehouse383a3182013-12-06 13:06:57 +090045the subproject]
Martin Fick21e278e2012-02-23 13:45:54 -070046
David Pursehouse383a3182013-12-06 13:06:57 +090047* Update the top level `pom.xml` in the subproject to reflect
Edwin Kempin67e09dc2012-07-23 10:46:06 +020048the new project version (the exact value of the tag you will create
49below)
Martin Fick21e278e2012-02-23 13:45:54 -070050
Edwin Kempinbb8e6252012-07-31 14:30:35 +020051* Create the Release Tag
52+
Michael Ochmannb99feab2016-07-06 14:10:22 +020053----
54 git tag -a -m "prolog-cafe 1.3" v1.3
55----
Martin Fickec31ff42012-06-23 11:35:39 -060056
Edwin Kempinbb8e6252012-07-31 14:30:35 +020057* Build and install into local Maven repository:
58+
Michael Ochmannb99feab2016-07-06 14:10:22 +020059----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020060 mvn clean install
Michael Ochmannb99feab2016-07-06 14:10:22 +020061----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020062
63
64[[publish-release]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080065== Publish the Release
Edwin Kempinbb8e6252012-07-31 14:30:35 +020066
67* Make sure you have done the configuration needed for deployment:
68** link:dev-release-deploy-config.html#deploy-configuration-settings-xml[
69Configuration in Maven `settings.xml`]
70** Configuration in `pom.xml` for
David Pursehouse383a3182013-12-06 13:06:57 +090071link:dev-release-deploy-config.html#deploy-configuration-subprojects[subprojects]
Edwin Kempinbb8e6252012-07-31 14:30:35 +020072
Martin Fick21e278e2012-02-23 13:45:54 -070073* Deploy the new release:
Edwin Kempinbb8e6252012-07-31 14:30:35 +020074+
Michael Ochmannb99feab2016-07-06 14:10:22 +020075----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020076 mvn deploy
Michael Ochmannb99feab2016-07-06 14:10:22 +020077----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020078
79* Push the pom change(s) to the project's repository
80`refs/for/<master|stable>`
81
82* Push the Release Tag
83+
Michael Ochmannb99feab2016-07-06 14:10:22 +020084----
Edwin Kempinbb8e6252012-07-31 14:30:35 +020085 git push gerrit-review refs/tags/v1.3:refs/tags/v1.3
Michael Ochmannb99feab2016-07-06 14:10:22 +020086----
Martin Fickec31ff42012-06-23 11:35:39 -060087
88
89GERRIT
90------
91Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070092
93SEARCHBOX
94---------