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