blob: 25b0467e54ef9f3363bc382870f725d4a8bf1609 [file] [log] [blame]
include_defs('//bucklets/gerrit_plugin.bucklet')
MODULE = 'com.googlesource.gerrit.plugins.xdocs.XDocs'
ASCIIDOCTOR = '//lib/asciidoctor:asciidoc_lib' if STANDALONE_MODE \
else '//plugins/x-docs/lib/asciidoctor:asciidoc_lib'
DAISYDIFF = '//lib/daisydiff:daisydiff_lib' if STANDALONE_MODE \
else '//plugins/x-docs/lib/daisydiff:daisydiff_lib'
gerrit_plugin(
name = 'x-docs',
srcs = glob(['src/main/java/**/*.java']),
resources = glob(['src/main/**/*']),
gwt_module = MODULE,
manifest_entries = [
'Gerrit-PluginName: xdocs',
'Gerrit-ApiType: plugin',
'Gerrit-ApiVersion: 2.11-SNAPSHOT',
'Gerrit-HttpModule: com.googlesource.gerrit.plugins.xdocs.HttpModule',
'Gerrit-Module: com.googlesource.gerrit.plugins.xdocs.Module',
'Gerrit-InitStep: com.googlesource.gerrit.plugins.xdocs.XDocInit',
],
deps = [
ASCIIDOCTOR,
DAISYDIFF,
],
)
# this is required for bucklets/tools/eclipse/project.py to work
java_library(
name = 'classpath',
deps = [':x-docs__plugin'],
)