File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments