Expose sources in GWT UI plugin API

gwt_binary() uses Bazel feature to retrieve the sources from the
dependency libraries. For the standalone API this feature cannot be
used as the only dependency is GWT UI plugin API. Expose the sources
in GWT UI plugin API as well.

TEST PLAN:

Apply this change and create the plugin API:

  $ ./tools/maven/api.sh install

Apply reviewers plugin Bazel build implementation change: [1] and
verify, that the reviewers plugin can be built with the GWT UI plugin
API created with this change.

[1] https://gerrit-review.googlesource.com/91830

Change-Id: I2b065a8eccbc33020d461834704d684871f463d7
This commit is contained in:
David Ostrovsky
2016-11-18 06:09:24 +01:00
committed by David Ostrovsky
parent 12f6aeb294
commit 8c9a9ea486
5 changed files with 26 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ gwt_module(
deps = [
':SafeHtml',
':UserAgent',
'//lib/gwt:user',
'//lib/gwt:user-neverlink',
],
visibility = ['//visibility:public'],
data = [

View File

@@ -10,7 +10,7 @@ EXPORTED_DEPS = [
'//gerrit-gwtexpui:SafeHtml',
'//gerrit-gwtexpui:UserAgent',
]
DEPS = ['//lib/gwt:user']
DEPS = ['//lib/gwt:user-neverlink']
SRC = 'src/main/java/com/google/gerrit/'
gwt_module(

View File

@@ -18,7 +18,21 @@ java_library2(
srcs = SRCS,
resources = glob(['src/main/**/*']),
exported_deps = ['//gerrit-gwtui-common:client-lib'],
deps = DEPS + ['//lib/gwt:dev'],
deps = DEPS + [
'//gerrit-common:libclient-src.jar',
'//gerrit-extension-api:libclient-src.jar',
'//gerrit-gwtexpui:libClippy-src.jar',
'//gerrit-gwtexpui:libGlobalKey-src.jar',
'//gerrit-gwtexpui:libProgress-src.jar',
'//gerrit-gwtexpui:libSafeHtml-src.jar',
'//gerrit-gwtexpui:libUserAgent-src.jar',
'//gerrit-gwtui-common:libclient-src.jar',
'//gerrit-patch-jgit:libclient-src.jar',
'//gerrit-patch-jgit:libEdit-src.jar',
'//gerrit-prettify:libclient-src.jar',
'//gerrit-reviewdb:libclient-src.jar',
'//lib/gwt:dev-neverlink',
],
)
java_library2(

View File

@@ -8,7 +8,7 @@ gwt_module(
SRC + 'common/**/*.java',
]),
gwt_xml = SRC + 'PrettyFormatter.gwt.xml',
deps = ['//lib/gwt:user'],
deps = ['//lib/gwt:user-neverlink'],
exported_deps = [
'//gerrit-extension-api:client',
'//gerrit-gwtexpui:SafeHtml',

View File

@@ -22,6 +22,14 @@ java_library(
data = ['//lib:LICENSE-Apache2.0'],
)
java_library(
name = 'dev-neverlink',
exports = ['@dev//jar'],
visibility = ['//visibility:public'],
neverlink = 1,
data = ['//lib:LICENSE-Apache2.0'],
)
java_library(
name = 'javax-validation_src',
exports = ['@javax_validation//src'],