From 0b7f198b54e6456286387b3214089214c1e2a21e Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 19 Mar 2020 14:00:58 +0100 Subject: [PATCH] Publish Maven plugin API This commit enables javadoc generator for the Spring Boot Maven plugin. This also harmonizes the structure of the documentation, with an `/api` and a `/reference` root directories for the javadoc and the reference guide respectively. Closes gh-20127 --- .../spring-boot-maven-plugin/build.gradle | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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" } }