File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ buildscript {
10
10
classpath(" org.gradle.api.plugins:gradle-tomcat-plugin:1.2.3" )
11
11
classpath(' me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1' )
12
12
classpath(' org.asciidoctor:asciidoctor-gradle-plugin:1.5.1' )
13
+ classpath(" io.spring.gradle:docbook-reference-plugin:0.3.0" )
13
14
}
14
15
}
15
16
Original file line number Diff line number Diff line change 2
2
apply plugin : ' base'
3
3
4
4
task docs {
5
- dependsOn ' manual:asciidoctor ' , ' apidocs' , ' guides:asciidoctor'
5
+ dependsOn ' manual:reference ' , ' apidocs' , ' guides:asciidoctor'
6
6
}
7
7
8
8
project(' manual' ) {
9
9
apply plugin : ' base'
10
10
apply plugin : ' org.asciidoctor.gradle.asciidoctor'
11
+ apply plugin : ' docbook-reference'
11
12
12
13
ext. expandPlaceholders = " "
13
14
@@ -16,6 +17,7 @@ project('manual') {
16
17
}
17
18
18
19
asciidoctor {
20
+ backends = [' docbook5' ]
19
21
options = [
20
22
eruby : ' erubis' ,
21
23
attributes : [
@@ -35,11 +37,21 @@ project('manual') {
35
37
]
36
38
}
37
39
40
+ reference {
41
+ sourceDir = new File (asciidoctor. outputDir , ' docbook5' )
42
+ pdfFilename = " spring-security-reference.pdf"
43
+ epubFilename = " spring-security-reference.epub"
44
+ expandPlaceholders = " "
45
+ }
46
+
47
+ afterEvaluate {
48
+ tasks. findAll { it. name. startsWith(" reference" ) }. each{ it. dependsOn. add(" asciidoctor" ) }
49
+ }
50
+
38
51
39
52
ext. spec = copySpec {
40
- into (' reference/htmlsingle' ) {
41
- from(asciidoctor. outputDir)
42
- exclude ' build' , ' Guardfile'
53
+ from (reference) {
54
+ into ' reference'
43
55
}
44
56
}
45
57
}
You can’t perform that action at this time.
0 commit comments