c13d8feb30
javadoc accepts source archive and we need to create one anyway. So instead of trying to use the sources in the tree and guess the root project directory, just use the source archive. We extact the archive in temporary directory to make javadoc work. Change-Id: Ib605f6cdab4742a23789da8fbc9c963c83e5b6d9
61 lines
1.3 KiB
Python
61 lines
1.3 KiB
Python
SRCS = glob(['src/main/java/com/google/gerrit/**/*.java'])
|
|
DEPS = ['//lib/gwt:user']
|
|
|
|
java_binary(
|
|
name = 'gwtui-api',
|
|
deps = [
|
|
':gwtui-api-lib',
|
|
'//gerrit-gwtui-common:client-lib',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'gwtui-api-lib',
|
|
srcs = SRCS,
|
|
resources = glob(['src/main/**/*']),
|
|
exported_deps = ['//gerrit-gwtui-common:client-lib'],
|
|
provided_deps = DEPS + ['//lib/gwt:dev'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_binary(
|
|
name = 'gwtui-api-src',
|
|
deps = [
|
|
':gwtui-api-src-lib',
|
|
'//gerrit-gwtexpui:client-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',
|
|
pkgs = [
|
|
'com.google.gerrit',
|
|
'com.google.gwtexpui.clippy',
|
|
'com.google.gwtexpui.globalkey',
|
|
'com.google.gwtexpui.safehtml',
|
|
'com.google.gwtexpui.user',
|
|
],
|
|
source_jar = ':gwtui-api-src',
|
|
srcs = SRCS,
|
|
deps = DEPS + [
|
|
'//lib:gwtjsonrpc',
|
|
'//lib:gwtorm_client',
|
|
'//lib/gwt:dev',
|
|
'//gerrit-gwtui-common:client-lib',
|
|
'//gerrit-common:client',
|
|
'//gerrit-reviewdb:client',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|