Hi,
Is it possible to use “t1.outputs.files” before defining task t1?
For below build.gradle configuration I have error “Could not find property ‘t1’ on task ‘:t2’.”.
When I change order (task t1 before t2) of tasks it works fine.
`task t2 (type:Exec) {
inputs.files t1.outputs.files
workingDir '.'
commandLine 'date’
FileTree tree = fileTree(dir: ‘.’, include: ‘**/.’)
outputs.files tree
}
task t1(type:Exec) {
workingDir '.'
commandLine 'date’
FileTree tree = fileTree(dir: ‘.’, include: ‘**/.’)
outputs.files tree
}
`