Skip to content
Snippets Groups Projects
Commit 7008eb2c authored by dgelessus's avatar dgelessus
Browse files

Migrate to new org.asciidoctor.jvm.convert plugin

parent 9345d43e
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ buildscript {
}
plugins {
id "org.asciidoctor.convert" version "2.4.0"
id "org.asciidoctor.jvm.convert" version "2.4.0"
id "com.github.jruby-gradle.base" version "1.7.0"
}
......@@ -29,10 +29,14 @@ repositories {
jcenter()
}
configurations {
asciidoctorDeps
}
dependencies {
asciidoctor 'org.asciidoctor:asciidoctorj-diagram:1.5.18'
asciidoctor 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.9'
asciidoctor 'org.asciidoctor:asciidoctorj-pdf:1.5.0-beta.8'
asciidoctorDeps 'org.asciidoctor:asciidoctorj-diagram:1.5.18'
asciidoctorDeps 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.9'
asciidoctorDeps 'org.asciidoctor:asciidoctorj-pdf:1.5.0-beta.8'
gems 'rubygems:asciidoctor-bibtex:0.8.0'
}
......@@ -83,13 +87,17 @@ task buildMaindocs() {
asciidoctor {
dependsOn = [bibtex, jrubyPrepare, buildMaindocs]
requires = ['asciidoctor-diagram', 'asciidoctor-bibtex']
gemPath = jrubyPrepare.outputDir
configurations "asciidoctorDeps"
options doctype: 'book'
outputOptions {
backends = ['html5', 'pdf']
}
asciidoctorj {
requires = ['asciidoctor-diagram', 'asciidoctor-bibtex']
gemPaths = [jrubyPrepare.outputDir]
attributes = [
'source-highlighter': 'coderay',
'coderay-linenums-mode': 'table',
......@@ -100,6 +108,9 @@ asciidoctor {
'encoding': 'utf-8',
'bibtex-file': 'combined.bib',
]
}
baseDirFollowsSourceDir()
sources {
include '*.adoc'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment