Commit 0b7f198b authored by Stephane Nicoll's avatar Stephane Nicoll

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
parent 7014cc55
...@@ -68,6 +68,19 @@ asciidoctorPdf { ...@@ -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) { tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
attributes "maven-jar-plugin-version": "1.2.3", attributes "maven-jar-plugin-version": "1.2.3",
"maven-failsafe-plugin-version": "1.2.3", "maven-failsafe-plugin-version": "1.2.3",
...@@ -78,10 +91,13 @@ task zip(type: Zip) { ...@@ -78,10 +91,13 @@ task zip(type: Zip) {
dependsOn asciidoctor, asciidoctorPdf dependsOn asciidoctor, asciidoctorPdf
duplicatesStrategy "fail" duplicatesStrategy "fail"
from(asciidoctorPdf.outputDir) { from(asciidoctorPdf.outputDir) {
into "pdf" into "reference/pdf"
} }
from(asciidoctor.outputDir) { from(asciidoctor.outputDir) {
into "html" into "reference/html"
}
from(javadoc) {
into "api"
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment