3ffc86a6a0
This patch adds gerrit.war into api_{install,deploy} buck build step. This allows third party maven based builds depend on gerrit.war artifact. Change-Id: I22c8d3339a1647913967e423e45462c2c5c255de Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
97 lines
2.1 KiB
Python
97 lines
2.1 KiB
Python
include_defs('//tools/build.defs')
|
|
|
|
gerrit_war(name = 'gerrit')
|
|
gerrit_war(name = 'chrome', ui = 'ui_chrome')
|
|
gerrit_war(name = 'firefox', ui = 'ui_firefox')
|
|
gerrit_war(name = 'withdocs', context = DOCS)
|
|
gerrit_war(name = 'release', context = DOCS + ['//plugins:core.zip'], visibility = ['//tools/maven:'])
|
|
|
|
API_DEPS = [
|
|
':extension-api',
|
|
':extension-api-src',
|
|
':plugin-api',
|
|
':plugin-api-src',
|
|
':plugin-gwtui',
|
|
':plugin-gwtui-src',
|
|
]
|
|
|
|
genrule(
|
|
name = 'api',
|
|
cmd = ';'.join(
|
|
['cd $TMP'] +
|
|
['ln -s $(location %s) .' % n for n in API_DEPS] +
|
|
['zip -q0 $OUT *']),
|
|
deps = API_DEPS,
|
|
out = 'api.zip',
|
|
)
|
|
|
|
java_binary(
|
|
name = 'extension-api',
|
|
deps = [':extension-lib'],
|
|
visibility = ['//tools/maven:'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'extension-lib',
|
|
deps = [
|
|
'//gerrit-extension-api:api',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-servlet',
|
|
'//lib:servlet-api-3_0',
|
|
],
|
|
export_deps = True,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
genrule(
|
|
name = 'extension-api-src',
|
|
cmd = 'ln -s $(location //gerrit-extension-api:api-src) $OUT',
|
|
deps = ['//gerrit-extension-api:api-src'],
|
|
out = 'extension-api-src.jar',
|
|
visibility = ['//tools/maven:'],
|
|
)
|
|
|
|
PLUGIN_API = [
|
|
'//gerrit-server:server',
|
|
'//gerrit-pgm:init-api',
|
|
'//gerrit-sshd:sshd',
|
|
'//gerrit-httpd:httpd',
|
|
]
|
|
|
|
java_binary(
|
|
name = 'plugin-api',
|
|
deps = [':plugin-lib'],
|
|
visibility = ['//tools/maven:'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'plugin-lib',
|
|
deps = PLUGIN_API + ['//lib:servlet-api-3_0'],
|
|
export_deps = True,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_binary(
|
|
name = 'plugin-api-src',
|
|
deps = [
|
|
'//gerrit-extension-api:api-src',
|
|
] + [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:'],
|
|
)
|