Guys, thank you for your ideas, I’ll take them into account.
but to answer on my origin question, it could be resolved in the next way:
checkstyleMain {
gradle.taskGraph.whenReady { graph ->
ignoreFailures = !graph.hasTask(":" + project.name + ":forceCheckstyleMain")
}
}
task forceCheckstyleMain(dependsOn: 'checkstyleMain') {
}
It works good for my project and sca task.
One small question at the end:
Is it possible to apply --continue
to the task without command line argument? (I mean to run gradlew sca
instead of gradlew sca --continue
)