spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Migrate to version catalogs

Open Goooler opened this issue 2 months ago • 3 comments

All dependencies including these

https://github.com/diffplug/spotless/blob/a0ac60042bb4470f9dd7992e11541ca37d025f75/lib/build.gradle#L73-L137

Goooler avatar Oct 28 '25 02:10 Goooler

For a project with lots of modules, and you want the same dependency across them all, I think version catalogs are helpful.

When a dependency is only used in one place, I think version catalogs are an unnecessary layer of indirection.

Spotless does not have a large number of modules, and most dependencies are only used in one place, so I don't think a version catalog will make things easier.

I'm still open to this though. What am I missing?

nedtwigg avatar Nov 03 '25 17:11 nedtwigg

This is mostly useful for #2705.

Goooler avatar Nov 04 '25 05:11 Goooler

  • this is a good idea, and the reason was patiently explained to me here: https://github.com/diffplug/spotless/issues/2705#issuecomment-3484021121

nedtwigg avatar Nov 05 '25 17:11 nedtwigg