java-module-dependencies icon indicating copy to clipboard operation
java-module-dependencies copied to clipboard

[Maybe] Properties file for module versions

Open jjohannes opened this issue 2 years ago • 0 comments

To define versions, there are currently two documented methods:

  1. Use a platform (either as spearate project or as variant of an application project)
  2. Use Gradle's version catalog ([versions] section)

From usability (2) is a bit nicer because it just requires you to add a file. (1) requires a more involved setup and versions are "hidden" in a build.gradle file. But (1) has the big advantage that all versions are always used automatically and allows you to influence the versions of transitive dependencies for which you never have a direct require.

I think in the context of this plugin, it would be nice to have another option with a similar usability as (2) but the effect of (1). A solution could be to have the versions in a dedicated properties file (with module.name=version entries) that the plugins than translated into version constraints for all modules of your project.

jjohannes avatar Nov 12 '23 16:11 jjohannes