Add the ability to disable the gradle-dependency-check job by setting the GRADLE_NO_DEPENDENCY_CHECK variable
Description
In my project, I don't need to run the gradle-dependency-check.
So, as we can set the GRADLE_NO_PUBLISH variable to disable the gradle-publish tasks, I would like to disable the gradle-dependency-check task by setting a variable like GRADLE_NO_DEPENDENCY_CHECK.
Implementation ideas
In gitlab-ci-template-gradle.yml, add a rule in the gradle-dependency-check like this :
gradle-dependency-check:
extends: .gradle-base
[...]
rules:
- if: $GRADLE_NO_DEPENDENCY_CHECK
when: never
In the README part Dependency-check, add the following line :
| GRADLE_NO_DEPENDENCY_CHECK | Set this variable if you wish to disable gradle check dependency phase | None |
Edited by Nicolas Punzo