Replace deprecated Project.task()
See gh-45009 Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
@@ -28,19 +28,19 @@ dependencies {
|
||||
testRuntimeOnly(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-logging"))
|
||||
}
|
||||
|
||||
task syncTestRepository(type: Sync) {
|
||||
tasks.register("syncTestRepository", Sync) {
|
||||
destinationDir = file(layout.buildDirectory.dir("test-repository"))
|
||||
from {
|
||||
configurations.testRepository
|
||||
}
|
||||
}
|
||||
|
||||
task syncAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-server-tests-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-server-tests-app"))
|
||||
}
|
||||
|
||||
task buildApps(type: GradleBuild) {
|
||||
tasks.register("buildApps", GradleBuild) {
|
||||
dependsOn syncAppSource, syncTestRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-server-tests-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
|
||||
Reference in New Issue
Block a user