blob: 8aca3046adaa8e9c1e21ab784e22d5cca900364a [file]
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
}
repositories {
jcenter()
}
def mainADoc = 'GettingStarted_mdmblProject'
def resultPdfName = 'GettingStarted_mdmbl'
asciidoctor {
options doctype: 'book'
attributes toclevels: 4, toc: 'left', sectnums: 'numbered'
sourceDir file('src')
sources {
include "$mainADoc" + ".adoc"
}
outputDir file("$buildDir/docs")
baseDirFollowsSourceDir()
}
pdfThemes {
local 'openMDM', {
themeDir = file('themes')
themeName = 'openMDM'
}
}
asciidoctorPdf {
theme 'openMDM'
options doctype: 'book'
attributes toclevels: 4, toc: 'auto', sectnums: 'numbered', 'chapter-label': ''
sourceDir file('src')
sources {
include "$mainADoc" + ".adoc"
}
outputDir file("$buildDir/pdf")
baseDirFollowsSourceDir()
}
jar.dependsOn(asciidoctorPdf)
jar.dependsOn(asciidoctor)