asciidoctor-gradle-plugin
                                
                                 asciidoctor-gradle-plugin copied to clipboard
                                
                                    asciidoctor-gradle-plugin copied to clipboard
                            
                            
                            
                        Compilation error in task configuration
When configuring the asciidoctor task using the Kotlin DSL as described here,
i.e.
// My build.gradle.kt file
import org.asciidoctor.gradle.jvm.AsciidoctorTask
plugins {
    id("org.asciidoctor.jvm.convert") version "2.3.0"
}
tasks {
    "asciidoctor"(AsciidoctorTask::class) {
        sourceDir = file("src/docs")
        sources(delegateClosureOf<PatternSet> {
            include("**/*.adoc")
        })
        outputDir = file("$buildDir/docs")
    }
}
The compiler complains, that sourceDir and outputDir cannot be reassigned, due to being vals.
Script compilation errors:
  Line 11:         sourceDir = file("$srcDir/docs")
                   ^ Val cannot be reassigned
  Line 15:         outputDir = file("$buildDir/docs")
                   ^ Val cannot be reassigned
Update
Using setSourceDir(file(...)) and setOutputDir(file(...)) does work.
Is there an update on this? I ran into the same issue when migrating from "org.asciidoctor.convert" to "org.asciidoctor.jvm.convert".
We'll try to deal with this in the next release which is before end of 2020.