You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the code shown below should have a task dependency from bar to foo automatically.
You can of course mitigate it by using foo.map { it.foo } which is anyway better due to preserving task-configuration avoidance,
or by using bar.from(foo) as long as foo is the only output property.
But it would be nice if this worked. :-)
Context
abstractclassFoo : DefaultTask() {
@get:OutputFiles
abstractval foo:ConfigurableFileCollection
}
abstractclassBar : DefaultTask() {
@get:InputFiles
abstractval bar:ConfigurableFileCollection
}
val foo by tasks.registering(Foo::class)
val bar by tasks.registering(Bar::class) {
bar.from(foo.get().foo)
}