gerrit/gerrit-plugin-gwtui/BUCK
David Ostrovsky b4edfabc03 Buck: Export gwtui-common in gwtui-api-lib
Plugins with GWT modules need both:

* gerrit-plugin-gwtui
* gerrit-gwtui-common

Export gerrit-gwtui-common in gwtui-api-lib so that only one dependency
is needed to link against in tree plugin build.

This is the same behaviour as when the plugin is built against published
plugin API (we don't publish gwtui-common as standalone artifact).

Change-Id: If8da90dc1038b6d4145d2e2bab333c2642e3c25f
2014-06-10 11:31:58 +02:00

59 lines
1.2 KiB
Python

COMMON = ['gerrit-gwtui-common/src/main/java/']
SRC = 'src/main/java/com/google/gerrit/'
SRCS = glob([SRC + '**/*.java'])
DEPS = [
'//lib/gwt:user',
'//lib/gwt:dev',
]
java_binary(
name = 'gwtui-api',
deps = [
':gwtui-api-lib',
'//gerrit-gwtui-common:client-lib',
],
visibility = ['PUBLIC'],
)
java_library(
name = 'gwtui-api-lib',
exported_deps = [':gwtui-api-lib2'],
visibility = ['PUBLIC'],
)
java_library(
name = 'gwtui-api-lib2',
srcs = SRCS,
resources = glob(['src/main/**/*']),
exported_deps = ['//gerrit-gwtui-common:client-lib2'],
provided_deps = DEPS,
visibility = ['PUBLIC'],
)
java_binary(
name = 'gwtui-api-src',
deps = [
':gwtui-api-src-lib',
'//gerrit-gwtui-common:client-src-lib',
],
visibility = ['PUBLIC'],
)
java_library(
name = 'gwtui-api-src-lib',
srcs = [],
resources = glob(['src/main/**/*']),
visibility = ['PUBLIC'],
)
java_doc(
name = 'gwtui-api-javadoc',
title = 'Gerrit Review GWT Extension API Documentation',
pkg = 'com.google.gerrit',
paths = ['src/main/java'] + COMMON,
srcs = SRCS,
deps = DEPS + ['//gerrit-gwtui-common:client-lib2'],
visibility = ['PUBLIC'],
)