Gradle Antora Plugin Documentation
The Antora plugin for Gradle prepares a Node.js runtime and then uses the runtime to install and run Antora.
The plugin invokes Antora using its CLI (
antora) by way of the
The Antora plugin builds on the Node.js plugin to provision a Node.js runtime, which, in turn, it uses to install and run Antora. That means you don’t need Node.js preinstalled to use this plugin. All you need is Java in order to run Gradle. Head over to the Use the Plugin page to see how easy it is to get started.
The Antora plugin provides the following capabilities and features:
Run Antora without having to install or configure Node.js.
Specify select Antora CLI options directly from the Gradle call.
Assign Antora environment variables and CLI options using the antora extension block in build.gradle.
Manage the version of Antora installed by the plugin using the
antoraextension block, package.json (with or without package-lock.json), or the special comment syntax in an Antora playbook file.
Manage additional Antora and Asciidoctor Node.js extension packages using the
packagesproperty in build.gradle, package.json (with or without package-lock.json), or the special comment syntax in an Antora playbook template.
Distribute and centrally manage a local, author-oriented Antora playbook template with the plugin’s playbook provider feature.