Open oneslideicywater opened 4 years ago
Hello @oneslideicywater
// what's this asciidoctorj for?
asciidoctorj
is the processor, see https://github.com/asciidoctor/asciidoctorj
The block defines the version we want to use but it's optional (ie. when you apply the plugin it comes with a default version).
there seem to be a syntax error in IntelliJ idea,what's "\" is for? but weird it works. are the lines below "\" is a Map?
IntelliJ does like the \
but it's still a valid Gradle file. I believe the backslash is to use a nice indentation but you can remove it and use:
asciidoctor {
attributes 'build-gradle': file('build.gradle'),
'sourcedir': project.sourceSets.main.java.srcDirs[0],
'endpoint-url': 'http://example.org',
'source-highlighter': 'coderay'
// ...
}
I also refer to Ascidoc plugin which is quite different from the syntax in your build script!