blob: cccde03bb739b8edae92c3c15244d50f8aa42231 [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'
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],
)
# this is required for bucklets/tools/eclipse/project.py to work
java_library(
name = 'classpath',
deps = [':x-docs__plugin'],
)