Snyk Community

loading...

Discussion on: [Video] The Snyk Gradle Plugin

Collapse
jlleitschuh profile image
Jonathan Leitschuh

Instead of using test.finalizedBy('snyk-test') It would be better to use:

tasks.named("check").configure {
    dependsOn("snyk-test")
}
Enter fullscreen mode Exit fullscreen mode
Collapse
brianverm profile image
🧑🏼‍💻 Brian Vermeer Author

Thanks Jonathan, great comment!
It all depends on your situation. We just supply the tasks, how you integrate is all up to you. I am not judging how it fits anybody's needs, just giving an example :)