Dariusz Kuc
04/09/2020, 8:06 PMA
and B
) that can be executed independently of each other
• task B
can optionally take an input from task A
output (or just read file from a file system)
• [works] I would like to provide an option for end users to either configure tasks directly in their build scripts
// build.gradle.kts
val a by tasks.getting(TaskA::class) {
propA.set("whatever")
}
tasks.withType(TaskB::class) {
propB.set("xyz")
input.set(a.output)
dependsOn("taskA")
}
• [doesn't work] I would also like to provide an option to to automatically create those tasks and their dependencies if project extension is configured, e.g.
// build.gradle.kts
myExtension {
propA = "whatever"
propB = "xyz"
}
Is that even possible?Dariusz Kuc
04/09/2020, 8:07 PMDariusz Kuc
04/09/2020, 8:07 PMDariusz Kuc
04/09/2020, 9:33 PMproject.afterEvaluate
block