AsciidoctorJ EPUB plugin
INFO: As from version 3.3 support for KindleGen is dropped as Amazon no longer has the binary available for download.
- 
Groovy 
- 
Kotlin 
plugins {
    id 'org.asciidoctor.jvm.epub' version '5.0.0-alpha.2'
}plugins {
    id("org.asciidoctor.jvm.epub") version "5.0.0-alpha.2"
}When applying org.asciidoctor.jvm.epub it creates a single task of type org.asciidoctor.gradle.jvm.epub.AsciidoctorEpubTask which is then configured to:
- 
Output source to "${buildDir}/docs/asciidocEpub" 
- 
Not to copy any resources to the output directory 
- 
It will set also a default version for asciidoctorj-epubartifact. To override setasciidoctorj.epubVersionorasciidoctorEpub.asciidoctorj.epubVersion.
The AsciidoctorEpubTask task type has the following additional methods:
| ebookFormats | The epub formats to generate.
Specify one of more strings. Anything that is supported by the Asciidoctor EPUB backend can be used. Constant  |