-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
36 lines (36 loc) · 1.14 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
buildscript {
ext {
asciiDoctorGradlePluginVersion = "1.5.3"
asciidoctorjDiagramVersion = "1.5.8"
asciidoctorjPdfVersion = "1.5.0-alpha.15"
livereloadVersion = "0.2.1"
}
repositories {
jcenter()
}
dependencies {
classpath("org.asciidoctor:asciidoctor-gradle-plugin:${asciiDoctorGradlePluginVersion}")
classpath("org.asciidoctor:asciidoctorj-diagram:${asciidoctorjDiagramVersion}")
classpath("org.asciidoctor:asciidoctorj-pdf:${asciidoctorjPdfVersion}")
classpath("org.kordamp.gradle:livereload-gradle-plugin:${livereloadVersion}")
}
}
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
apply plugin: 'org.kordamp.gradle.livereload'
asciidoctor {
dependsOn 'clean'
sourceDir = file('./docs/src')
requires = ['asciidoctor-diagram']
backends = ['html5', 'pdf']
outputDir = file('docs')
separateOutputDirs = false
attributes = [
"imagesoutdir": "./images",
"imagesdir" : "./images"
]
}
liveReload {
docRoot asciidoctor.outputDir.canonicalPath
}
defaultTasks 'asciidoctor'