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
This commit is contained in:
parent
af3c04a08e
commit
c8cffc8e92
18
BUCK
18
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:'],
|
||||
)
|
||||
|
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 = {
|
||||
'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',
|
||||
},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user