summaryrefslogtreecommitdiffstats
path: root/BUILD
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2016-08-28 20:54:50 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2016-09-20 09:16:56 +0200
commitf6b7d4a18da69b45cf73375e65627ce4417e09f0 (patch)
tree72f410b7f6f1aa48b41cea8bc320929e6dd906fe /BUILD
parente0f23b9f0daad3e23ff447bfd43b4e3e0ca27149 (diff)
Bazel: Produce headless war
This change creates the archive with: lib pgm-lib default web assets but without: GWT UI PolyGerrit UI Plugins Documentation TEST PLAN: bazel build :headless java -jar bazel-bin/headless.war init -d ../test_site_bazel Change-Id: I53987b10a5863aee0298bd2ea29405c26dbacb0c
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD19
1 files changed, 19 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 1d36b5e63e..b63dd60a25 100644
--- a/BUILD
+++ b/BUILD
@@ -1,4 +1,5 @@
load('//tools/bzl:genrule2.bzl', 'genrule2')
+load('//tools/bzl:pkg_war.bzl', 'pkg_war')
genrule2(
name = 'version',
@@ -7,3 +8,21 @@ genrule2(
out = 'version.txt',
visibility = ['//visibility:public'],
)
+
+pkg_war(
+ name = 'headless',
+ context = [
+ '//gerrit-main:main_bin_deploy.jar',
+ '//gerrit-war:webapp_assets',
+ ],
+ libs = [
+ '//gerrit-war:init',
+ '//gerrit-war:log4j-config',
+ '//gerrit-war:version',
+ '//lib:postgresql',
+ '//lib/log:impl_log4j',
+ ],
+ pgmlibs = [
+ '//gerrit-pgm:pgm'
+ ],
+)