gerrit/gerrit-extension-api/BUCK
David Ostrovsky 76e396b49b Buck: Rename gwtxml to gwt_xml in gwt_module()
gwt_xml is more pythonic naming convention.  Beside that recent Buck
version introduced new gwt_jar parameter in prebuilt_jar() rule and
future Buck versions may introduce gwt_xml parameter to java_library()
rule.

Change-Id: Ia6447e62945ce3eb5ff951421ebf2f0fdf622b3d
2014-05-19 12:26:50 -07:00

59 lines
1.2 KiB
Python

SRC = 'src/main/java/com/google/gerrit/extensions/'
SRCS = glob([SRC + '**/*.java'])
gwt_module(
name = 'client',
srcs = glob([
SRC + 'api/projects/ProjectState.java',
SRC + 'common/InheritableBoolean.java',
SRC + 'common/ListChangesOption.java',
SRC + 'common/SubmitType.java',
SRC + 'webui/GerritTopMenu.java',
]),
gwt_xml = SRC + 'Extensions.gwt.xml',
visibility = ['PUBLIC'],
)
java_binary(
name = 'extension-api',
deps = [':lib'],
visibility = ['PUBLIC'],
)
java_library(
name = 'lib',
exported_deps = [
':api',
'//lib/guice:guice',
'//lib/guice:guice-servlet',
'//lib:servlet-api-3_1',
],
visibility = ['PUBLIC'],
)
java_library(
name = 'api',
srcs = glob([SRC + '**/*.java']),
provided_deps = ['//lib/guice:guice'],
visibility = ['PUBLIC'],
)
java_sources(
name = 'extension-api-src',
srcs = SRCS,
visibility = ['PUBLIC'],
)
java_doc(
name = 'extension-api-javadoc',
title = 'Gerrit Review Extension API Documentation',
pkg = 'com.google.gerrit.extensions',
paths = ['src/main/java'],
srcs = SRCS,
deps = [
'//lib/guice:javax-inject',
'//lib/guice:guice_library'
],
visibility = ['PUBLIC'],
)