Skip to content

Instantly share code, notes, and snippets.

@hlapidez
Last active September 26, 2018 09:41
Show Gist options
  • Save hlapidez/efba680e983f983f3543cd088b1e7b93 to your computer and use it in GitHub Desktop.
Save hlapidez/efba680e983f983f3543cd088b1e7b93 to your computer and use it in GitHub Desktop.
gradle ascii doc test and problem. Problem is the diagramm only works the first build. If the adoc is changed and the conversion is run again the diagram is not generate and embedded as plaintext. Message: 'invalid style for literal block: ditaa'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.8'
classpath group: 'org.asciidoctor', name: 'asciidoctorj-diagram', version: '1.5.9'
classpath group: 'org.asciidoctor', name: 'asciidoctorj-pdf', version: '1.5.0-alpha.16'
}
}
plugins {
id 'com.github.jruby-gradle.base' version '1.5.0'
}
apply plugin: 'org.asciidoctor.convert'
dependencies {
}
asciidoctor {
dependsOn jrubyPrepare
requires = ['asciidoctor-diagram']
gemPath = jrubyPrepare.outputDir
backends = ['html5', 'pdf']
logDocuments = true
sourceDir = file('docs')
sources {
include 'toplevel.adoc', 'another.adoc', 'third.adoc'
}
outputDir = file('build/docs')
attributes 'source-highlighter' : 'coderay',
'coderay-linenums-mode' : 'table',
toc : 'left',
icon : 'font',
linkattrs : true,
encoding : 'utf-8'
}
@hlapidez
Copy link
Author

Problem is the diagramm only works the first build.
After the first build the gradle daemon is started. Running without daemon works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment