Expose Gerrit's GWT client library in the plugin API

This allows plugins to use and/or extend classes and resources
in the com.google.gerrit.client package.

Change-Id: I06d0908801d667124820f53b32ef4db9112f271e
Signed-off-by: Dariusz Luksza <dluksza@collab.net>
This commit is contained in:
Dariusz Luksza
2017-02-07 17:12:27 +01:00
committed by David Pursehouse
parent dba9da101c
commit 00e3fe6584
2 changed files with 18 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ load(
)
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:license.bzl", "license_test")
load("//tools/bzl:java.bzl", "java_library2")
gwt_genrule()
@@ -20,6 +21,19 @@ gen_ui_module(
gwt_user_agent_permutations()
java_library2(
name = "client-lib",
srcs = glob(["src/main/**/*.java"]),
exported_deps = [":ui_module"],
resources = glob(["src/main/**/*"]),
visibility = ["//visibility:public"],
deps = [
"//gerrit-gwtui-common:client-lib",
"//lib/gwt:dev",
"//lib/gwt:user",
],
)
license_test(
name = "ui_module_license_test",
target = ":ui_module",

View File

@@ -19,7 +19,10 @@ java_binary(
java_library2(
name = "gwtui-api-lib",
srcs = SRCS,
exported_deps = ["//gerrit-gwtui-common:client-lib"],
exported_deps = [
"//gerrit-gwtui:client-lib",
"//gerrit-gwtui-common:client-lib",
],
resources = glob(["src/main/**/*"]),
deps = DEPS + [
"//gerrit-common:libclient-src.jar",