Skip to content

Commit 7654cc1

Browse files
committed
lazily evaluate signed module output
1 parent 9b85c7b commit 7654cc1

File tree

1 file changed

+2
-2
lines changed
  • gradle-module-plugin/src/main/kotlin/io/ia/sdk/gradle/modl/task

1 file changed

+2
-2
lines changed

gradle-module-plugin/src/main/kotlin/io/ia/sdk/gradle/modl/task/SignModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ open class SignModule @Inject constructor(_providers: ProviderFactory, _objects:
5959

6060
// the signed modl file
6161
@get:OutputFile
62-
val signed: Provider<RegularFile> = unsigned.map {
62+
val signed: Provider<RegularFile> = unsigned.flatMap {
6363
val unsignedFileName = it.asFile.name
6464
val signedName = unsignedFileName.replace(".unsigned", "")
65-
project.layout.buildDirectory.file(signedName).get()
65+
project.layout.buildDirectory.file(signedName)
6666
}
6767

6868
@get:Input

0 commit comments

Comments
 (0)