Skip to content

Commit

Permalink
change to flatMap to allow maximum laziness
Browse files Browse the repository at this point in the history
  • Loading branch information
benmusson committed Aug 6, 2024
1 parent 81e986e commit b9439bb
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 b9439bb

Please sign in to comment.