Trying to removing root project restriction#242
Conversation
403914c to
4538006
Compare
|
Is there any consideration for this proposal today? While our structure isn't the same as @jsfuchs, our subproject This may not be a trivial change for projects that already apply it at the root-level. Maybe a backwards-compatible solution could be implemented to ensure that support for those projects is not lost. |
|
I went through trying to remove the root project limitation yesterday, and I've been able to lint successfully. @jsfuchs changes seem to have worked at least for task creation, however, another change was needed in the Further, Gradle's documentation today states that cross-project configuration should be avoided and this is one place we'd like to avoid it in our buildscripts, if possible: https://docs.gradle.org/current/userguide/sharing_build_logic_between_subprojects.html#sec:convention_plugins_vs_cross_configuration @rpalcolea Do you have any thoughts on the above? |
7d6dbad to
c92a3a7
Compare
I'm opening this up more as a conversation starter than a change to be put in immediately.
Where I'm working, I really want to apply the gradle lint plugin inside a mono-repo. Applying the plugin at the root level is just not feasible - it takes far too long to analyze the whole root, and I wouldn't even be able to apply most of the fixes because I only work on a very small bit of the whole repository.
So here's my attempt at removing the restriction. I'm definitely not understanding why it was there in the first place (e.g. what bugs have I uncovered by removing this restriction?).
My initial testing with the modified plugin has been successful so far. I was able to apply it to a subproject and the analysis I get is only for that subproject.