diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle index 47d21c4dd1..b6f536097c 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle @@ -68,6 +68,19 @@ asciidoctorPdf { } } +javadoc { + options { + author = true + docTitle = "Spring Boot Maven Plugin ${project.version} API" + encoding = "UTF-8" + memberLevel = "protected" + outputLevel = "quiet" + splitIndex = true + use = true + windowTitle = "Spring Boot Maven Plugin ${project.version} API" + } +} + tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) { attributes "maven-jar-plugin-version": "1.2.3", "maven-failsafe-plugin-version": "1.2.3", @@ -78,10 +91,13 @@ task zip(type: Zip) { dependsOn asciidoctor, asciidoctorPdf duplicatesStrategy "fail" from(asciidoctorPdf.outputDir) { - into "pdf" + into "reference/pdf" } from(asciidoctor.outputDir) { - into "html" + into "reference/html" + } + from(javadoc) { + into "api" } }