Skip to content

Commit ec82380

Browse files
committed
chore: Lazy task access
1 parent b28e090 commit ec82380

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dd-smoke-tests/spring-boot-2.7-webflux/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ tasks.register('webfluxBuild', Exec) {
2727
include '**/*'
2828
exclude '.gradle/**'
2929
})
30-
.withPropertyName("application")
31-
.withPathSensitivity(PathSensitivity.RELATIVE)
30+
.withPropertyName("application")
31+
.withPathSensitivity(PathSensitivity.RELATIVE)
3232
}
3333

3434
tasks.named("webfluxBuild", Exec) {
@@ -38,7 +38,7 @@ tasks.named("webfluxBuild", Exec) {
3838
tasks.named("compileTestGroovy", GroovyCompile) {
3939
dependsOn 'webfluxBuild'
4040
outputs.upToDateWhen {
41-
!webfluxBuild.didWork
41+
!tasks.named('webfluxBuild').get().didWork
4242
}
4343
}
4444

dd-smoke-tests/spring-boot-3.0-webflux/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ tasks.register('webfluxBuild30', Exec) {
3131
include '**/*'
3232
exclude '.gradle/**'
3333
})
34-
.withPropertyName("application")
35-
.withPathSensitivity(PathSensitivity.RELATIVE)
34+
.withPropertyName("application")
35+
.withPathSensitivity(PathSensitivity.RELATIVE)
3636
}
3737

3838
tasks.named("webfluxBuild30", Exec) {
@@ -42,7 +42,7 @@ tasks.named("webfluxBuild30", Exec) {
4242
tasks.named("compileTestGroovy", GroovyCompile) {
4343
dependsOn 'webfluxBuild30'
4444
outputs.upToDateWhen {
45-
!webfluxBuild30.didWork
45+
!tasks.named('webfluxBuild30').get().didWork
4646
}
4747
}
4848

0 commit comments

Comments
 (0)