Bazel: Implement GWT UI build for the plugins

TEST PLAN:

  $ bazel build plugins/cookbook-plugin

Deploy to the server site and verify that it works.

Change-Id: I98af807f9c92ba4ed7efad332d8fdee407bb8ce6
This commit is contained in:
David Ostrovsky
2016-11-15 14:30:26 -08:00
parent 63408c9ce8
commit 2502fab15a
4 changed files with 73 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ package(default_visibility = ['//visibility:public'])
load('//tools/bzl:java.bzl', 'java_library2')
SRCS = glob(['src/main/java/com/google/gerrit/**/*.java'])
DEPS = ['//lib/gwt:user']
DEPS = ['//lib/gwt:user-neverlink']
java_binary(
name = 'gwtui-api',
@@ -18,7 +18,16 @@ java_library2(
srcs = SRCS,
resources = glob(['src/main/**/*']),
exported_deps = ['//gerrit-gwtui-common:client-lib'],
deps = DEPS + ['//lib/gwt:dev'], # we want this to be exported deps
deps = DEPS + ['//lib/gwt:dev'],
)
java_library2(
name = 'gwtui-api-lib-neverlink',
srcs = SRCS,
resources = glob(['src/main/**/*']),
exported_deps = ['//gerrit-gwtui-common:client-lib'],
neverlink = 1, # we want this to be exported deps
deps = DEPS + ['//lib/gwt:dev'],
)
java_binary(