asciidoctor / asciidoctorj-diagram

AsciidoctorJ Diagram bundles the Asciidoctor Diagram RubyGem (asciidoctor-diagram) so it can be loaded into the JVM using JRuby.
Apache License 2.0
10 stars 6 forks source link

Diagram source files get corrupted #11

Open dhakehurst opened 3 years ago

dhakehurst commented 3 years ago

Bit of an issue. When I run the gradle assciidoc task, all my images have their content set to 0 bytes !!!

all images are .png files. included in adoc file like: image:images/xxx/YYY.png

here is the relevant part of the build.gradle.kts file.

plugins {
    id("org.asciidoctor.jvm.convert") version "3.2.0"
}

asciidoctorj {
    modules {
        diagram.use()
        diagram.version("2.0.5")
    }
}

tasks {
    "asciidoctor"(org.asciidoctor.gradle.jvm.AsciidoctorTask::class) {
        sourceDir(file("documentation"))
        setBaseDir(file("documentation"))
        sources(delegateClosureOf<PatternSet> {
            include("UserGuide.asciidoc")
        })
        setOutputDir(file("documentation"))

        attributes(
            mapOf(
                "data-uri" to "true",
                "toc2" to "",
                "theme" to "flask",
                "nofooter" to ""
            )
        )
    }
}