AsciidoctorJ Plugin

build.gradle
plugins {
    id 'org.asciidoctor.jvm.convert' version '4.0.2'
}
build.gradle.kts
plugins {
    id("org.asciidoctor.jvm.convert") version "4.0.2"
}

When applying org.asciidoctor.jvm.convert it creates a single task of type org.asciidoctor.gradle.jvm.AsciidoctorTask called asciidoctor.

By convention, it sets the

  • sourceDir to src/docs/asciidoc

  • outputDir to ${buildDir}/docs/asciidoc