Hi, Im involved in a kotlin multiplatform project - and my gradle skills leaves a bit to be desired. Does anybody have a few pointers on how to write a task that executes after another task. For example:```
Copy code
task myTask {
dependsOn(tasks.named("jsMainClasses").get())
println("A task running after jsMainClasses is done.")
}
Our use-case is that I want to copy the js-build artifacts to a different location after they are built
t
tapchicoma
02/25/2020, 7:15 PM
seems you need to write following :
Copy code
tasks.register("copyJsBuild", Copy::class.java) {
from tasks.named("jsMainClasses")
into file("target-dir")
}
tapchicoma
02/25/2020, 7:16 PM
then "copyJsBuild" task will have dependency on "jsMainClasses" task