-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add @Option to Gradle tasks to enable command-line configuration #161
Comments
This looks like it would require a LOT of refactoring of the plugin as the |
What if keep extensions as is, but add extra I guess adjusting |
Being able to configure the plugin from the command line is needed for various CI/CD purposes such as:
Requiring each repo using this plugin to configure the properties in the |
Would using an init-script, such as described in odc/issues#4044, work? |
I think an init script could be used to override/configure the plugin. Here is a simple example to override the report formats.
rootProject {
afterEvaluate { project ->
project.dependencyCheck.formats = ['JSON']
}
} SonarQube's plugin configuration behavior is what we're used to. It is very handy to set properties from the command line using our CI/CD tool. |
For instance:
I know
failBuildOnCVSS
could be specified inbuild.*
files, however, it would be convenient if the tasks supported command-line options ( see https://docs.gradle.org/current/userguide/custom_tasks.html#sec:declaring_and_using_command_line_options )The text was updated successfully, but these errors were encountered: