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 c8cffc8e92
)
This commit is contained in:

committed by
David Pursehouse

parent
a92ba47ef1
commit
acc959d645
18
BUCK
18
BUCK
@@ -11,6 +11,8 @@ API_DEPS = [
|
|||||||
':extension-api-src',
|
':extension-api-src',
|
||||||
':plugin-api',
|
':plugin-api',
|
||||||
':plugin-api-src',
|
':plugin-api-src',
|
||||||
|
':plugin-gwtui',
|
||||||
|
':plugin-gwtui-src',
|
||||||
]
|
]
|
||||||
|
|
||||||
genrule(
|
genrule(
|
||||||
@@ -76,3 +78,19 @@ java_binary(
|
|||||||
] + [d + '-src' for d in PLUGIN_API],
|
] + [d + '-src' for d in PLUGIN_API],
|
||||||
visibility = ['//tools/maven:'],
|
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:'],
|
||||||
|
)
|
||||||
|
20
gerrit-plugin-gwtui/BUCK
Normal file
20
gerrit-plugin-gwtui/BUCK
Normal file
@@ -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'],
|
||||||
|
)
|
@@ -10,10 +10,12 @@ maven_package(
|
|||||||
jar = {
|
jar = {
|
||||||
'gerrit-extension-api': '//:extension-api',
|
'gerrit-extension-api': '//:extension-api',
|
||||||
'gerrit-plugin-api': '//:plugin-api',
|
'gerrit-plugin-api': '//:plugin-api',
|
||||||
|
'gerrit-plugin-gwtui': '//:plugin-gwtui',
|
||||||
},
|
},
|
||||||
src = {
|
src = {
|
||||||
'gerrit-extension-api': '//:extension-api-src',
|
'gerrit-extension-api': '//:extension-api-src',
|
||||||
'gerrit-plugin-api': '//:plugin-api-src',
|
'gerrit-plugin-api': '//:plugin-api-src',
|
||||||
|
'gerrit-plugin-gwtui': '//:plugin-gwtui-src',
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user