Skip to content

Commit

Permalink
lazily evaluate signed module output
Browse files Browse the repository at this point in the history
  • Loading branch information
benmusson committed Aug 13, 2024
1 parent 9b85c7b commit 7654cc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ open class SignModule @Inject constructor(_providers: ProviderFactory, _objects:

// the signed modl file
@get:OutputFile
val signed: Provider<RegularFile> = unsigned.map {
val signed: Provider<RegularFile> = unsigned.flatMap {
val unsignedFileName = it.asFile.name
val signedName = unsignedFileName.replace(".unsigned", "")
project.layout.buildDirectory.file(signedName).get()
project.layout.buildDirectory.file(signedName)
}

@get:Input
Expand Down

0 comments on commit 7654cc1

Please sign in to comment.