From acc959d645f46e792865547c0de07eddee7ab0bb Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Thu, 7 Nov 2013 18:44:00 +0100 Subject: [PATCH] Buck: add build for gerrit-plugin-gwtui This plugin module was left out during Buck migration. $>buck build api produces now plugin-gwtui.jar and plugin-gwtui-src.jar. Buck Maven bridge was enhanced to {install|deploy} the new artifact to remote or local Maven repositories: $>buck build install_api deployes gerrit-plugin-gwtui-2.9-SNAPSHOT-sources.jar gerrit-plugin-gwtui-2.9-SNAPSHOT.jar to local Maven repository. Change-Id: Idae18f6df2e67fe53d57b8c35caa4226333e269b (cherry picked from commit c8cffc8e928a9277621ffff6cb740f79cd662195) --- BUCK | 18 ++++++++++++++++++ gerrit-plugin-gwtui/BUCK | 20 ++++++++++++++++++++ tools/maven/BUCK | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 gerrit-plugin-gwtui/BUCK 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', }, )