在gradle.build文件中,我使用了each循环来减少任务中重复代码的需要:
(1..3).each {
from "./build/nodes"
include "/bin/**"
into "./build/deployment/node $it"
}
预期结果
./build/deployment/node 1
实际结果
./build/deployment/node org.gradle.api.internal.file.copy.CopySpecWrapper_Decorated@26e4c110
我做错了什么?