Skip to content

Commit 305a22e

Browse files
committed
[FAB-13672] stop using deprecated left closure
This commit replaces deprecated left closure with doLast task to prevent failures during docker image creation. Change-Id: Ib48458d269c159326dd767216aa6ebc183d21043 Signed-off-by: Artem Barger <[email protected]>
1 parent f2ccaf4 commit 305a22e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

fabric-chaincode-protos/build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ sourceSets {
8484
}
8585
}
8686

87-
task downloadProtoFiles << {
88-
protoFiles.each { k, v ->
89-
download {
90-
src "$fabricRepo/$fabricBranch/$k"
91-
dest v
92-
onlyIfModified true
87+
task downloadProtoFiles {
88+
doLast {
89+
protoFiles.each { k, v ->
90+
download {
91+
src "$fabricRepo/$fabricBranch/$k"
92+
dest v
93+
onlyIfModified true
94+
}
9395
}
9496
}
9597
}

0 commit comments

Comments
 (0)