-
Notifications
You must be signed in to change notification settings - Fork 200
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
Guard constraint resolution by a property since it isn't really possi… #353
Conversation
Thanks for the speedy fix! Let's get a quirk confirmation from the bug reporters and then release this. |
I'd like to suggest removing the system property evaluation and only keep the task property. Additionally I'd like to suggest using If a property should remain as default, I'd like to suggest |
I personally like project properties too but went with system property since currently all the knobs are system properties. If we want to change we should change all of them but not sure that is in our scope right now. |
I see, but imho in any way
But I guess @ben-manes should comment / decide upon these points |
I am fine either way (including none and only having a task property). This plugin was written in 1.x days so I probably missed some of the best practices and those changed anyway. I don't think this would be used much at the command line, so I'd lean towards not including it. What do you think about not having it as a command-line option @Vampire, @anuraaga? |
Well, with |
Makes sense - removed the property |
Thanks, can you squash and I'll merge? |
76b4ab3
to
5f4d7d6
Compare
Oops one sec have to fix README |
…ble to know if a constraint is added by a plugin and out of user control or not.
5f4d7d6
to
7dba9c4
Compare
Ok squashed and should be ready |
perfect. I'll let the CI finish, merge, and shortly after release. |
…ble to know if a constraint is added by a plugin and out of user control or not.
We found one of the most popular Gradle plugins, the Android plugin, uses constraints. There is one issue in general that if a constraint and dependency both are defined, there's no need to use the constraint in the report (i.e., we want a dependency that is updated to not show in the report even when the constraint is older) which I fix.
But in the end, there isn't a way to know whether a constraint is added by a user or a plugin. I think this also applies for dependencies, but I guess it's less common for plugins to add those. So I've added a flag to enable constraint checking so the user can opt-in to it when they know they can use it.