-
Notifications
You must be signed in to change notification settings - Fork 2
Getting started
nllptr edited this page Nov 6, 2014
·
1 revision
It's probably a good idea to have the target version of Gerrit built and installed in your local maven repository.
- Install maven (
sudo apt-get install mavenor similarly). - Install buck as described here. Although the instructions say you need Android SDK, we don't need it for our purposes.
- Run
git clone https://gerrit.googlesource.com/gerritto download the gerrit source.cdinto the directory andgit checkout v2.10-rc0(the target version is 2.10). -
cdinto thepluginsdirectory. - Clone the following projects into the plugins directory:
commit-message-length-validator,download-commands,replication,reviewnotes,singleusergroup. - For each plugin, cd into its directory and check out the version you're building for, currently 2.10-rc0.
- (Optional) Build gerrit with
buck build gerrit.buck build war_installwill install the .war file into the local maven repository. - For developing plugins, we need the api jar files. Run
buck build apito build them.buck build api_installwill install them into the local maven repository. - Download bucklets (commonly used buck snippets) [here](git clone https://gerrit.googlesource.com/bucklets).
- Clone this repository.
- Set up bucklets. Inside the gerrit-reviewassistant folder, run
ln -s /path/to/bucklets .followed byln -s bucklets/buckversion .buckversion. - Now, you're ready to build with
buck build plugin.