|
|
|
|
@ -220,7 +220,7 @@ task aggregatedJavadoc(type: Javadoc) {
@@ -220,7 +220,7 @@ task aggregatedJavadoc(type: Javadoc) {
|
|
|
|
|
dependsOn publishedProjects.javadoc |
|
|
|
|
source publishedProjects.javadoc.source |
|
|
|
|
classpath = project.files(publishedProjects.javadoc.classpath) |
|
|
|
|
destinationDir = project.file "${buildDir}/docs/javadoc" |
|
|
|
|
destinationDir = project.file(project.layout.buildDirectory.dir("docs/javadoc")) |
|
|
|
|
options { |
|
|
|
|
author = true |
|
|
|
|
docTitle = "Spring Boot ${project.version} API" |
|
|
|
|
@ -253,33 +253,33 @@ task aggregatedJavadoc(type: Javadoc) {
@@ -253,33 +253,33 @@ task aggregatedJavadoc(type: Javadoc) {
|
|
|
|
|
|
|
|
|
|
task documentTestSlices(type: org.springframework.boot.build.test.autoconfigure.DocumentTestSlices) { |
|
|
|
|
testSlices = configurations.testSlices |
|
|
|
|
outputFile = file("${buildDir}/docs/generated/test-auto-configuration/documented-slices.adoc") |
|
|
|
|
outputFile = layout.buildDirectory.file("docs/generated/test-auto-configuration/documented-slices.adoc") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task documentStarters(type: org.springframework.boot.build.starters.DocumentStarters) { |
|
|
|
|
outputDir = file("${buildDir}/docs/generated/using/starters/") |
|
|
|
|
outputDir = layout.buildDirectory.dir("docs/generated/using/starters/") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task documentAutoConfigurationClasses(type: org.springframework.boot.build.autoconfigure.DocumentAutoConfigurationClasses) { |
|
|
|
|
autoConfiguration = configurations.autoConfiguration |
|
|
|
|
outputDir = file("${buildDir}/docs/generated/auto-configuration-classes/documented-auto-configuration-classes/") |
|
|
|
|
outputDir = layout.buildDirectory.dir("docs/generated/auto-configuration-classes/documented-auto-configuration-classes/") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task documentDependencyVersions(type: org.springframework.boot.build.constraints.DocumentConstrainedVersions) { |
|
|
|
|
dependsOn dependencyVersions |
|
|
|
|
constrainedVersions.set(providers.provider { dependencyVersions.constrainedVersions }) |
|
|
|
|
outputFile = file("${buildDir}/docs/generated/dependency-versions/documented-coordinates.adoc") |
|
|
|
|
outputFile = layout.buildDirectory.file("docs/generated/dependency-versions/documented-coordinates.adoc") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task documentVersionProperties(type: org.springframework.boot.build.constraints.DocumentVersionProperties) { |
|
|
|
|
dependsOn dependencyVersions |
|
|
|
|
versionProperties.set(providers.provider { dependencyVersions.versionProperties}) |
|
|
|
|
outputFile = file("${buildDir}/docs/generated/dependency-versions/documented-properties.adoc") |
|
|
|
|
outputFile = layout.buildDirectory.file("docs/generated/dependency-versions/documented-properties.adoc") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task documentConfigurationProperties(type: org.springframework.boot.build.context.properties.DocumentConfigurationProperties) { |
|
|
|
|
configurationPropertyMetadata = configurations.configurationProperties |
|
|
|
|
outputDir = file("${buildDir}/docs/generated/") |
|
|
|
|
outputDir = layout.buildDirectory.dir("docs/generated/") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task documentDevtoolsPropertyDefaults(type: org.springframework.boot.build.devtools.DocumentDevtoolsPropertyDefaults) {} |
|
|
|
|
@ -288,7 +288,7 @@ task runRemoteSpringApplicationExample(type: org.springframework.boot.build.docs
@@ -288,7 +288,7 @@ task runRemoteSpringApplicationExample(type: org.springframework.boot.build.docs
|
|
|
|
|
classpath = configurations.remoteSpringApplicationExample |
|
|
|
|
mainClass = "org.springframework.boot.devtools.RemoteSpringApplication" |
|
|
|
|
args = ["https://myapp.example.com", "--spring.devtools.remote.secret=secret", "--spring.devtools.livereload.port=0"] |
|
|
|
|
output = file("$buildDir/example-output/remote-spring-application.txt") |
|
|
|
|
output = layout.buildDirectory.file("example-output/remote-spring-application.txt") |
|
|
|
|
expectedLogging = "Started RemoteSpringApplication in " |
|
|
|
|
applicationJar = "/Users/myuser/.m2/repository/org/springframework/boot/spring-boot-devtools/${project.version}/spring-boot-devtools-${project.version}.jar" |
|
|
|
|
normalizeLiveReloadPort() |
|
|
|
|
@ -298,7 +298,7 @@ task runSpringApplicationExample(type: org.springframework.boot.build.docs.Appli
@@ -298,7 +298,7 @@ task runSpringApplicationExample(type: org.springframework.boot.build.docs.Appli
|
|
|
|
|
classpath = configurations.springApplicationExample + sourceSets.main.output |
|
|
|
|
mainClass = "org.springframework.boot.docs.features.logexample.MyApplication" |
|
|
|
|
args = ["--server.port=0"] |
|
|
|
|
output = file("$buildDir/example-output/spring-application.txt") |
|
|
|
|
output = layout.buildDirectory.file("example-output/spring-application.txt") |
|
|
|
|
expectedLogging = "Started MyApplication in " |
|
|
|
|
normalizeTomcatPort() |
|
|
|
|
} |
|
|
|
|
@ -307,7 +307,7 @@ task runLoggingFormatExample(type: org.springframework.boot.build.docs.Applicati
@@ -307,7 +307,7 @@ task runLoggingFormatExample(type: org.springframework.boot.build.docs.Applicati
|
|
|
|
|
classpath = configurations.springApplicationExample + sourceSets.main.output |
|
|
|
|
mainClass = "org.springframework.boot.docs.features.logexample.MyApplication" |
|
|
|
|
args = ["--spring.main.banner-mode=off", "--server.port=0", "--spring.application.name=myapp"] |
|
|
|
|
output = file("$buildDir/example-output/logging-format.txt") |
|
|
|
|
output = layout.buildDirectory.file("example-output/logging-format.txt") |
|
|
|
|
expectedLogging = "Started MyApplication in " |
|
|
|
|
normalizeTomcatPort() |
|
|
|
|
} |
|
|
|
|
@ -398,7 +398,7 @@ syncDocumentationSourceForAsciidoctor {
@@ -398,7 +398,7 @@ syncDocumentationSourceForAsciidoctor {
|
|
|
|
|
dependsOn documentVersionProperties |
|
|
|
|
dependsOn documentConfigurationProperties |
|
|
|
|
dependsOn documentDevtoolsPropertyDefaults |
|
|
|
|
from("${buildDir}/docs/generated") { |
|
|
|
|
from(layout.buildDirectory.dir("docs/generated")) { |
|
|
|
|
into "asciidoc" |
|
|
|
|
} |
|
|
|
|
from("src/main/java") { |
|
|
|
|
@ -426,7 +426,7 @@ syncDocumentationSourceForAsciidoctorMultipage {
@@ -426,7 +426,7 @@ syncDocumentationSourceForAsciidoctorMultipage {
|
|
|
|
|
dependsOn documentVersionProperties |
|
|
|
|
dependsOn documentConfigurationProperties |
|
|
|
|
dependsOn documentDevtoolsPropertyDefaults |
|
|
|
|
from("${buildDir}/docs/generated") { |
|
|
|
|
from(layout.buildDirectory.dir("docs/generated")) { |
|
|
|
|
into "asciidoc" |
|
|
|
|
} |
|
|
|
|
from("src/main/java") { |
|
|
|
|
@ -454,7 +454,7 @@ syncDocumentationSourceForAsciidoctorPdf {
@@ -454,7 +454,7 @@ syncDocumentationSourceForAsciidoctorPdf {
|
|
|
|
|
dependsOn documentVersionProperties |
|
|
|
|
dependsOn documentConfigurationProperties |
|
|
|
|
dependsOn documentDevtoolsPropertyDefaults |
|
|
|
|
from("${buildDir}/docs/generated") { |
|
|
|
|
from(layout.buildDirectory.dir("docs/generated")) { |
|
|
|
|
into "asciidoc" |
|
|
|
|
} |
|
|
|
|
from("src/main/java") { |
|
|
|
|
|