| 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'], | |
| ) | |