Skip to content

Instantly share code, notes, and snippets.

@Aricg
Last active August 29, 2015 14:06
Show Gist options
  • Save Aricg/3b313e5595afa19bb17c to your computer and use it in GitHub Desktop.
Save Aricg/3b313e5595afa19bb17c to your computer and use it in GitHub Desktop.
Build its-Bugzilla for gerrit 2.9
(Configuring buck not included)
git clone --recursive -b stable-2.9 https://gerrit.googlesource.com/gerrit
buck build api
buck build api_install
cd buck-out/gen/gerrit-plugin-api/
mvn install:install-file \
-DgroupId=com.google.gerrit \
-DartifactId=gerrit-plugin-api \
-Dversion=2.9 \
-Dpackaging=jar \
-Dfile=plugin-api.jar
git clone https://gerrit.googlesource.com/plugins/its-base && cd its-base
git checkout a7faba399fc56e1dd72837f797369611832e2cb4
sed -i s/SNAPSHOT//g pom.xml
sed -i s/SNAPSHOT//g its-base/pom.xml
mvn install -DskipTests=true -Dmaven.javadoc.skip=true
[INFO] BUILD SUCCESS
git clone https://gerrit.googlesource.com/plugins/its-bugzilla && cd its-bugzilla
sed -i s/SNAPSHOT//g pom.xml
mvn install -DskipTests=true -Dmaven.javadoc.skip=true
[INFO] BUILD SUCCESS
@davido
Copy link

davido commented Oct 1, 2014

mvn install:install-file \
  [...]

You don't need to do this manually, buck build api_install does just that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment