This message was deleted.
# general
s
This message was deleted.
t
gradle help --task "taskName"
m
I would like to include a check in my build.gradle that checks for the current task type and does something if it matches a specific type
n
Does this work for you?
Copy code
tasks.withType(YourType::class) {
    // do what you want here
    doLast { 
        // after all other actions for the task 
    }
    doFirst {
        // before all other actions for the task
    }
}
m
@Niels Doucet I actually ended up doing exactly that before I got to see your message 🙂
👍 1
Thanks for the help though!