-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (37 loc) · 1.09 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
37
38
39
40
41
42
43
44
45
46
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16'
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.1.11'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
}
}
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'com.github.jruby-gradle.base'
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
apply plugin: 'com.github.ben-manes.versions'
repositories{
jcenter()
}
asciidoctor {
dependsOn jrubyPrepareGems
gemPath = jrubyPrepareGems.outputDir
options doctype: 'book'
sourceDir = new File('src/doc')
backends = ['html', 'pdf']
attributes 'source-highlighter': 'coderay',
'coderay-linenums-mode': 'table',
toc: 'right',
linkattrs: true,
encoding: 'utf-8',
pagenums: '1'
resources {
from('src/doc/') {
include '**/*.png'
include '**/*.jpg'
}
}
}