diff --git a/BUCK b/BUCK index 616a0fe06a..a278127dda 100644 --- a/BUCK +++ b/BUCK @@ -11,6 +11,8 @@ API_DEPS = [ ':extension-api-src', ':plugin-api', ':plugin-api-src', + ':plugin-gwtui', + ':plugin-gwtui-src', ] genrule( @@ -76,3 +78,19 @@ java_binary( ] + [d + '-src' for d in PLUGIN_API], visibility = ['//tools/maven:'], ) + +genrule( + name = 'plugin-gwtui', + cmd = 'ln -s $(location //gerrit-plugin-gwtui:client) $OUT', + deps = ['//gerrit-plugin-gwtui:client'], + out = 'plugin-gwtui.jar', + visibility = ['//tools/maven:'], +) + +genrule( + name = 'plugin-gwtui-src', + cmd = 'ln -s $(location //gerrit-plugin-gwtui:src) $OUT', + deps = ['//gerrit-plugin-gwtui:src'], + out = 'plugin-gwtui-src.jar', + visibility = ['//tools/maven:'], +) diff --git a/gerrit-plugin-gwtui/BUCK b/gerrit-plugin-gwtui/BUCK new file mode 100644 index 0000000000..58eda5c8a1 --- /dev/null +++ b/gerrit-plugin-gwtui/BUCK @@ -0,0 +1,20 @@ +SRC = 'src/main/java/com/google/gerrit/' + +gwt_module( + name = 'client', + srcs = glob([SRC + '**/*.java']), + gwtxml = SRC + 'Plugin.gwt.xml', + resources = glob(['src/main/resources/**/*']), + deps = [ + '//lib/gwt:user', + '//lib/gwt:dev', + ], + visibility = ['PUBLIC'], +) + +java_library( + name = 'src', + srcs = [], + resources = glob(['src/main/**/*']), + visibility = ['PUBLIC'], +) diff --git a/tools/maven/BUCK b/tools/maven/BUCK index 7a35ce6cd9..2553d03cf3 100644 --- a/tools/maven/BUCK +++ b/tools/maven/BUCK @@ -10,10 +10,12 @@ maven_package( jar = { 'gerrit-extension-api': '//:extension-api', 'gerrit-plugin-api': '//:plugin-api', + 'gerrit-plugin-gwtui': '//:plugin-gwtui', }, src = { 'gerrit-extension-api': '//:extension-api-src', 'gerrit-plugin-api': '//:plugin-api-src', + 'gerrit-plugin-gwtui': '//:plugin-gwtui-src', }, )