How to create gradle task which always runs?
问题 I'm likely overlooking something pretty core/obvious, but how can I create a task that will always be executed for every task/target? I can do something like: task someTask << { println "I sometimes run" } println "I always run" But it would be much more desirable to have the always running part in a task. The closest I've come is: task someTask << { println "I sometimes run" } println "I always run" void helloThing() { println "I always run too. Hello?" } helloThing() So, using a method is