Skip to content

Commit 8f6f86d

Browse files
committed
update sandbox for gradle strictness
Signed-off-by: Bob Callaway <[email protected]>
1 parent b7321f2 commit 8f6f86d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sandbox/gradle-sign-file/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ dependencies {
2121
val hello by tasks.registering(WriteProperties::class) {
2222
group = LifecycleBasePlugin.BUILD_GROUP
2323
description = "Generates a sample $name.properties file to sign"
24-
outputFile = layout.buildDirectory.file(
25-
"props/$name.properties"
26-
).get().asFile
24+
destinationFile.set(layout.buildDirectory.file("props/$name.properties"))
2725
property("hello", "world")
2826
}
2927

3028
val signFile by tasks.registering(SigstoreSignFilesTask::class) {
3129
group = LifecycleBasePlugin.BUILD_GROUP
3230
description = "Signs file via Sigstore"
33-
signFile(hello.map { it.outputFile })
31+
signFile(hello.map { it.destinationFile.get().asFile })
3432
}

0 commit comments

Comments
 (0)