Open micheljung opened 1 year ago
FYI the error was fixed using:
tasks {
"asciidoctor"(org.asciidoctor.gradle.jvm.AsciidoctorTask::class) {
setBaseDir(sourceDir)
}
}
I stumbled into this very same error (and it took me some hours to come here, as I expected the problem to be sitting in front of the computer ...).
Unfortunately, the workaround does not work if applied literally, @micheljung. Will try to figure out how this could work.
By chance I found that you could add baseDirFollowsSourceFile()
to the asciidoctor
task definition to resolve this:
...
asciidoctor {
...
baseDirFollowsSourceFile()
...
}
...
Please provide at least some documentation about it, @mojavelinux. Thanks!
Don't tell me to add documentation. If you want documentation added, you can step up and contribute it. This project relies on community contributions. It's not my job to handle everything.
build.gradle.kts
:src/docs/asciidoc/index.adoc
:src/docs/asciidoc/attributes.adoc
Output:
Let's ignore that I don't get yet why it searches
attributes.adoc
at the wrong place, I would never expect the Gradle build to be successful in case of aFATAL
error.