Reputation: 13395
I've got plugin task with name for example name1. And I've got my task task1.
name1
task1
When I execute task name1 I want to execute my task1.
How to achieve this?
Upvotes: 0
Views: 150
Reputation: 17262
Add this in your build.gradle:
build.gradle
name1.dependsOn(task1)
Upvotes: 2
Reputation: 84786
Use dependsOn or mustRunAfter. Link to the docs.
dependsOn
mustRunAfter
Upvotes: 5