-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Allow @option to be used with configuration extensions #11456
Comments
It's an interesting concept. I'm not sure the |
The Output of gradle -q hello -Pgreeting.message="Wassup from greeting plugin"
|
It looks like I miss read the code. It's mostly a feature that would be coming from
The question we are wondering is why would you want to configure the extension via the command line? What kind of use case are you looking at solving? |
This comes from a ticket posted to dependency-check-gradle#161. The plugin performs software composition analysis and can be configured to fail the build if a vulnerability is identified in one of the dependencies and has a CVSS score above a configured level. Their use case would be being able to adjust the CVSS threshold (i.e. the build may be configured to have it fail on a CVSS of 7.0 - but a developer may want to locally complete a successful build without having to modify the build.gradle while they finish solving their current task without having to fix the vulnerable component immediately). In other cases one may want to |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Gradle or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request. |
As recommended in the gradle documentation - most plugins use extensions to add configuration options (doc ref: Making the Plugin Configurable).
The
@Option
attribute is extremely useful as well. However, the@Option
attribute is only available on tasks - it would be very helpful if the @option attribute could be used within an extension.Desired Behavior
It would be great if we could add
@Option
using the following:Output of
gradle -q hello --message "Wassup from greeting plugin"
The text was updated successfully, but these errors were encountered: