@@ -211,7 +211,7 @@ task aggregatedJavadoc(type: Javadoc) {
211
211
dependsOn publishedProjects. javadoc
212
212
source publishedProjects. javadoc. source
213
213
classpath = project. files(publishedProjects. javadoc. classpath)
214
- destinationDir = project. file " ${ buildDir } / docs/javadoc"
214
+ destinationDir = project. file(project . layout . buildDirectory . dir( " docs/javadoc" ))
215
215
options {
216
216
author = true
217
217
docTitle = " Spring Boot ${ project.version} API"
@@ -244,33 +244,33 @@ task aggregatedJavadoc(type: Javadoc) {
244
244
245
245
task documentTestSlices (type : org.springframework.boot.build.test.autoconfigure.DocumentTestSlices ) {
246
246
testSlices = configurations. testSlices
247
- outputFile = file(" ${ buildDir } / generated/docs/test-auto-configuration/documented-slices.adoc" )
247
+ outputFile = layout . buildDirectory . file(" generated/docs/test-auto-configuration/documented-slices.adoc" )
248
248
}
249
249
250
250
task documentStarters (type : org.springframework.boot.build.starters.DocumentStarters ) {
251
- outputDir = file( " ${ buildDir } / generated/docs/using/starters/" )
251
+ outputDir = layout . buildDirectory . dir( " generated/docs/using/starters/" )
252
252
}
253
253
254
254
task documentAutoConfigurationClasses (type : org.springframework.boot.build.autoconfigure.DocumentAutoConfigurationClasses ) {
255
255
autoConfiguration = configurations. autoConfiguration
256
- outputDir = file( " ${ buildDir } / generated/docs/auto-configuration-classes/documented-auto-configuration-classes/" )
256
+ outputDir = layout . buildDirectory . dir( " generated/docs/auto-configuration-classes/documented-auto-configuration-classes/" )
257
257
}
258
258
259
259
task documentDependencyVersionCoordinates (type : org.springframework.boot.build.constraints.DocumentConstrainedVersions ) {
260
260
dependsOn dependencyVersions
261
261
constrainedVersions. set(providers. provider { dependencyVersions. constrainedVersions })
262
- outputFile = file(" ${ buildDir } / generated/docs/dependency-versions/documented-coordinates.adoc" )
262
+ outputFile = layout . buildDirectory . file(" generated/docs/dependency-versions/documented-coordinates.adoc" )
263
263
}
264
264
265
265
task documentDependencyVersionProperties (type : org.springframework.boot.build.constraints.DocumentVersionProperties ) {
266
266
dependsOn dependencyVersions
267
267
versionProperties. set(providers. provider { dependencyVersions. versionProperties})
268
- outputFile = file(" ${ buildDir } / generated/docs/dependency-versions/documented-properties.adoc" )
268
+ outputFile = layout . buildDirectory . file(" generated/docs/dependency-versions/documented-properties.adoc" )
269
269
}
270
270
271
271
task documentConfigurationProperties (type : org.springframework.boot.build.context.properties.DocumentConfigurationProperties ) {
272
272
configurationPropertyMetadata = configurations. configurationProperties
273
- outputDir = file( " ${ buildDir } / generated/docs/application-properties" )
273
+ outputDir = layout . buildDirectory . dir( " generated/docs/application-properties" )
274
274
}
275
275
276
276
task documentDevtoolsPropertyDefaults (type : org.springframework.boot.build.devtools.DocumentDevtoolsPropertyDefaults ) {}
@@ -279,7 +279,7 @@ task runRemoteSpringApplicationExample(type: org.springframework.boot.build.docs
279
279
classpath = configurations. remoteSpringApplicationExample
280
280
mainClass = " org.springframework.boot.devtools.RemoteSpringApplication"
281
281
args = [" https://myapp.example.com" , " --spring.devtools.remote.secret=secret" , " --spring.devtools.livereload.port=0" ]
282
- output = file(" $b uildDir / example-output/remote-spring-application.txt" )
282
+ output = layout . buildDirectory . file(" example-output/remote-spring-application.txt" )
283
283
expectedLogging = " Started RemoteSpringApplication in "
284
284
applicationJar = " /Users/myuser/.m2/repository/org/springframework/boot/spring-boot-devtools/${ project.version} /spring-boot-devtools-${ project.version} .jar"
285
285
normalizeLiveReloadPort()
@@ -289,7 +289,7 @@ task runSpringApplicationExample(type: org.springframework.boot.build.docs.Appli
289
289
classpath = configurations. springApplicationExample + sourceSets. main. output
290
290
mainClass = " org.springframework.boot.docs.features.logexample.MyApplication"
291
291
args = [" --server.port=0" ]
292
- output = file(" $b uildDir / example-output/spring-application.txt" )
292
+ output = layout . buildDirectory . file(" example-output/spring-application.txt" )
293
293
expectedLogging = " Started MyApplication in "
294
294
normalizeTomcatPort()
295
295
}
@@ -298,7 +298,7 @@ task runLoggingFormatExample(type: org.springframework.boot.build.docs.Applicati
298
298
classpath = configurations. springApplicationExample + sourceSets. main. output
299
299
mainClass = " org.springframework.boot.docs.features.logexample.MyApplication"
300
300
args = [" --spring.main.banner-mode=off" , " --server.port=0" , " --spring.application.name=myapp" ]
301
- output = file(" $b uildDir / example-output/logging-format.txt" )
301
+ output = layout . buildDirectory . file(" example-output/logging-format.txt" )
302
302
expectedLogging = " Started MyApplication in "
303
303
normalizeTomcatPort()
304
304
}
0 commit comments