Skip to content

Commit a7a92f2

Browse files
committed
Include Asciidoc documentation into the docs ZIP file.
1 parent a005407 commit a7a92f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

buildSrc/src/main/groovy/io/spring/gradle/convention/DocsPlugin.groovy

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class DocsPlugin implements Plugin<Project> {
4141
pluginManager.apply(DeployDocsPlugin)
4242
pluginManager.apply(JavadocApiPlugin)
4343

44+
def projectName = Utils.getProjectName(project);
45+
def pdfFilename = projectName + '-reference.pdf';
46+
4447
Task docsZip = project.tasks.create('docsZip', Zip) {
4548

4649
archiveBaseName = project.rootProject.name
@@ -52,6 +55,15 @@ class DocsPlugin implements Plugin<Project> {
5255
from(project.tasks.api.outputs) {
5356
into 'api'
5457
}
58+
from(project.tasks.asciidoctor.outputs) {
59+
into 'reference/html5'
60+
include '**'
61+
}
62+
from(project.tasks.asciidoctorPdf.outputs) {
63+
into 'reference/pdf'
64+
include '**'
65+
rename "index.pdf", pdfFilename
66+
}
5567

5668
into 'docs'
5769
duplicatesStrategy DuplicatesStrategy.EXCLUDE

0 commit comments

Comments
 (0)