Skip to content

Commit a532c52

Browse files
committed
Fix missing reference doc from docs archive
Prior to this commit, the `docsZip` task would not reference the new output locations for the `asciidoctor` and `asciidoctorPdf` tasks. This results with missing reference docs in the docs zip. This commit updates the input locations of the Zip task to include the produced reference docs. Fixes gh-25783
1 parent a5a4960 commit a532c52

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gradle/docs.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ asciidoctorj {
153153
* in "build/docs/ref-docs/html5".
154154
*/
155155
asciidoctor {
156-
dependsOn asciidoctorPdf
157156
baseDirFollowsSourceDir()
158157
configurations 'asciidoctorExt'
159158
sources {
@@ -186,7 +185,7 @@ asciidoctorPdf {
186185
/**
187186
* Zip all docs (API and reference) into a single archive
188187
*/
189-
task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor', 'dokka']) {
188+
task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor', 'asciidoctorPdf', 'dokka']) {
190189
group = "Distribution"
191190
description = "Builds -${archiveClassifier} archive containing api and reference " +
192191
"for deployment at https://docs.spring.io/spring-framework/docs."
@@ -199,10 +198,10 @@ task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor', 'dokka']) {
199198
from (api) {
200199
into "javadoc-api"
201200
}
202-
from ("$asciidoctor.outputDir/html5") {
201+
from ("$asciidoctor.outputDir") {
203202
into "spring-framework-reference"
204203
}
205-
from ("$asciidoctor.outputDir/pdf") {
204+
from ("$asciidoctorPdf.outputDir") {
206205
into "spring-framework-reference/pdf"
207206
}
208207
from (dokka) {

0 commit comments

Comments
 (0)