Issue 2205: building gerrit.war fails with "rule //:gerrit must be of type android_binary() or apk_genrule()"
Status:  Invalid
Owner: ----
Closed:  Oct 2013
Reported by tza...@gmail.com, Oct 18, 2013
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: master and stable-2.8

What steps will reproduce the problem?
Follow instructions from https://gerrit-review.googlesource.com/Documentation/dev-buck.html#_installation

I would expect the WAR to be created. Instead I get:

tomasz@tomasz-VirtualBox:~/git/gerrit$ buck install gerrit
[-] PARSING BUILD FILES...FINISHED 2.6s
[+] BUILDING...167.9s
 |=> IDLE
 |=> //:gerrit...  3.6s (running genrule[3.5s])
[-] PARSING BUILD FILES...FINISHED 0.1s
[-] PARSING BUILD FILES...FINISHED 0.1s
BUILD FAILED: Specified rule //:gerrit must be of type android_binary() or apk_genrule() but was genrule().

I get the same error for master (bcce4e3bdfe4b25aabe4e86f39940d47c76ca41b) and stable-2.8.

Oct 22, 2013
Project Member #1 david.pu...@sonymobile.com
Try `buck build gerrit` which will create gerrit.war, or `buck build release` which will create release.war including the documentation and plugins.

I'm not sure if the `install` target is still valid.
Oct 22, 2013
Project Member #2 david.pu...@sonymobile.com
(No comment was entered for this change.)
Cc: sop@google.com
Oct 22, 2013
Project Member #3 david.pu...@sonymobile.com
Actually, no, `buck install` is not valid.  It is not mentioned at all in the documentation that you linked to.

Use `buck build gerrit` or `buck build release`

Status: Invalid
Oct 22, 2013
Project Member #4 david.pu...@sonymobile.com
(No comment was entered for this change.)
Cc: -sop@google.com