Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Make plugin compatible with component metadata rules declared in settings.gradle #18

Closed
tbroyer opened this issue Mar 9, 2022 · 3 comments
Milestone

Comments

@tbroyer
Copy link
Contributor

tbroyer commented Mar 9, 2022

Currently, the plugin declares component metadata rules in the project, making it impossible to declare other rules in the settings.

I think the plugin should be split to have the alignment rules in a settings plugin (actually, a plugin that could be applied either to a project or the settings, so projets that prefer project-level component metadata rules or have other plugins doing the same –or just because they want to leverage version catalogs and that cannot be done for settings plugins 🐔🥚– can continue using them).

Or maybe the plugin could detect if it's also been applied to the settings (not sure if it's possible though) so it can conditionally add the rules to the project?

Or maybe the plugin could detect when it's applied to the settings and automatically inject the extension into all projects, so it could be applied to either (but not both), and wouldn't need to be split?

Or just make it applicable to either settings (without registering the extension) and projects, and declare component rules in both cases? but that would make it incompatible with rulesMode FAIL_ON_PROJECT_RULES, and would warn for any other rulesMode.

@ljacomet
Copy link
Owner

ljacomet commented May 4, 2022

Thanks for that report and it is a good point. I'll have to think a bit about the best approach for this one.

@tbroyer
Copy link
Contributor Author

tbroyer commented May 14, 2022

@ljacomet ljacomet added this to the 0.12.0 milestone Feb 25, 2023
@ljacomet
Copy link
Owner

ljacomet commented Sep 8, 2024

I am going to close this as obsolete. With the move to the jvm-dependency-conflict-resolution plugin, rules defined in settings are an option.

@ljacomet ljacomet closed this as not planned Won't fix, can't repro, duplicate, stale Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants