Skip to content

Commit 6e7be76

Browse files
committed
Upgrade to AsciidoctorJ 3.1.0
Closes spring-projectsgh-24991
1 parent 1061bcd commit 6e7be76

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ plugins {
33
id 'io.spring.nohttp' version '0.0.5.RELEASE'
44
id 'org.jetbrains.kotlin.jvm' version '1.4.10' apply false
55
id 'org.jetbrains.dokka' version '0.10.1' apply false
6-
id 'org.asciidoctor.jvm.convert' version '2.4.0'
7-
id 'org.asciidoctor.jvm.pdf' version '2.4.0'
6+
id 'org.asciidoctor.jvm.convert' version '3.1.0'
7+
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
88
id 'de.undercouch.download' version '4.1.1'
99
id "io.freefair.aspectj" version '5.1.1' apply false
1010
id "com.github.ben-manes.versions" version '0.28.0'

gradle/docs.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ configurations {
33
}
44

55
dependencies {
6-
asciidoctorExt("io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:0.4.2.RELEASE")
6+
asciidoctorExt("io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:0.4.3.RELEASE")
77
}
88

99
repositories {
@@ -124,11 +124,7 @@ task extractDocResources(type: Copy, dependsOn: downloadResources) {
124124
}
125125

126126
asciidoctorj {
127-
modules {
128-
pdf {
129-
version '1.5.0-beta.8'
130-
}
131-
}
127+
version = '2.4.1'
132128
fatalWarnings ".*"
133129
options doctype: 'book', eruby: 'erubis'
134130
attributes([
@@ -153,7 +149,6 @@ asciidoctorj {
153149
* in "build/docs/ref-docs/html5".
154150
*/
155151
asciidoctor {
156-
dependsOn asciidoctorPdf
157152
baseDirFollowsSourceDir()
158153
configurations 'asciidoctorExt'
159154
sources {
@@ -186,7 +181,7 @@ asciidoctorPdf {
186181
/**
187182
* Zip all docs (API and reference) into a single archive
188183
*/
189-
task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor', 'dokka']) {
184+
task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor', 'asciidoctorPdf', 'dokka']) {
190185
group = "Distribution"
191186
description = "Builds -${archiveClassifier} archive containing api and reference " +
192187
"for deployment at https://docs.spring.io/spring-framework/docs."

0 commit comments

Comments
 (0)