Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20347

How to make plugin dependent on gradle task

$
0
0

Plugin may have an option to skip dependency registration (make pull request with fix if not!).

And then you can add dependencies as usual:

test.dependsOn(generateCucumberReports)

or

generateCucumberReports.mustRunAfter(test)

If you can’t change plugin source code try onlyIf

https://docs.gradle.org/current/dsl/org.gradle.api.Task.html


Viewing all articles
Browse latest Browse all 20347

Trending Articles