File tree Expand file tree Collapse file tree 2 files changed +26
-19
lines changed Expand file tree Collapse file tree 2 files changed +26
-19
lines changed Original file line number Diff line number Diff line change 1
- buildscript {
2
- dependencies {
3
- classpath ' org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16'
4
- classpath ' io.spring.asciidoctor:spring-asciidoctor-extensions:0.1.3.RELEASE'
5
- }
6
- }
7
-
8
1
plugins {
9
2
id ' io.spring.dependency-management' version ' 1.0.8.RELEASE' apply false
10
3
id ' org.jetbrains.kotlin.jvm' version ' 1.3.61' apply false
11
4
id ' org.jetbrains.dokka' version ' 0.9.18' apply false
12
- id ' org.asciidoctor.convert' version ' 1.5.8 '
5
+ id ' org.asciidoctor.jvm. convert' version ' 2.4.0 '
13
6
id ' io.spring.nohttp' version ' 0.0.4.RELEASE'
14
7
id ' de.undercouch.download' version ' 4.0.0'
15
8
id ' com.gradle.build-scan' version ' 3.1.1'
@@ -413,10 +406,6 @@ configure(rootProject) {
413
406
}
414
407
}
415
408
416
- dependencies {
417
- asciidoctor(" io.spring.asciidoctor:spring-asciidoctor-extensions:0.1.3.RELEASE" )
418
- }
419
-
420
409
publishing {
421
410
publications {
422
411
mavenJava(MavenPublication ) {
Original file line number Diff line number Diff line change
1
+ configurations {
2
+ asciidoctorExt
3
+ }
4
+
5
+ dependencies {
6
+ asciidoctorExt(" io.spring.asciidoctor:spring-asciidoctor-extensions:0.2.0.RELEASE" )
7
+ }
8
+
1
9
/**
2
10
* Produce Javadoc for all Spring Framework modules in "build/docs/javadoc"
3
11
*/
@@ -93,11 +101,21 @@ task extractDocResources(type: Copy, dependsOn: downloadResources) {
93
101
into " $buildDir /docs/spring-docs-resources/"
94
102
}
95
103
104
+ asciidoctorj {
105
+ modules {
106
+ pdf {
107
+ version ' 1.5.0-beta.8'
108
+ }
109
+ }
110
+ }
111
+
96
112
/**
97
113
* Produce the Spring Framework Reference documentation
98
114
* from "src/docs/asciidoc" into "build/asciidoc/html5"
99
115
*/
100
116
asciidoctor {
117
+ baseDirFollowsSourceDir()
118
+ configurations ' asciidoctorExt'
101
119
sources {
102
120
include ' *.adoc'
103
121
}
@@ -106,13 +124,15 @@ asciidoctor {
106
124
from(sourceDir) {
107
125
include ' images/*' , ' css/**' , ' js/**'
108
126
}
109
- from " $b uildDir /docs/spring-docs-resources/ "
127
+ from extractDocResources
110
128
}
111
129
logDocuments = true
112
- backends = [" html5" ]
113
- // only ouput PDF documentation for non-SNAPSHOT builds
114
- if (! project. getVersion(). toString(). contains(" BUILD-SNAPSHOT" )) {
115
- backends + = " pdf"
130
+ outputOptions {
131
+ backends = [" html5" ]
132
+ // only ouput PDF documentation for non-SNAPSHOT builds
133
+ if (! project. getVersion(). toString(). contains(" BUILD-SNAPSHOT" )) {
134
+ backends + = " pdf"
135
+ }
116
136
}
117
137
options doctype : ' book' , eruby : ' erubis'
118
138
attributes([
@@ -132,8 +152,6 @@ asciidoctor {
132
152
])
133
153
}
134
154
135
- asciidoctor. dependsOn extractDocResources
136
-
137
155
/**
138
156
* Zip all docs (API and reference) into a single archive
139
157
*/
You can’t perform that action at this time.
0 commit comments