Slackbot
05/12/2022, 2:25 PMSteve Ebersole
05/12/2022, 2:34 PMRobert Elliot
05/12/2022, 2:50 PMmoduleNameToGA in the gradle build file? And avoiding having a naming convention for the version so it can be reused across dependencies?
I'm imagining:
[versions]
commonslang = "3.12.0"
jackson = "2.12.5"
[libraries]
commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "commonslang", jpms.name = "org.apache.commons.lang3" }
jackson-core = { module = "com.fasterxml.jackson.core:jackson-core", version.ref = "jackson", jpms.name = "com.fasterxml.jackson.core" }
jackson-databind = { module = "com.fasterxml.jackson.jackson-databind", version.ref = "jackson", jpms.name = "com.fasterxml.jackson.databind" }
Don't know how easy it is to extend the TOML spec in this way, but it might be a way to keep the metadata together without relying on modules.properties / unique_modules.properties, and still remove version duplication.Jendrik Johannes
05/12/2022, 3:11 PM. is not allowed.
Right now, I think the Catalog is not a good fit for Java Module projects as you don’t use much of its features anyway. Right now defining versions in constraints using the gav("module.name", "version") notation feels like the better solution to me.
For the mappings: I want the plugin to deliver them so that you don’t need to define them at all. Because they are (with minor exceptions) unique and universal. The idea is really that in the ideal case you never have to deal with coordinates anywhere in the build. And if, only for a few mapping adjustments you do deep down in your convention plugins (and rarely touch).
Why do you want to define mappings yourself?Robert Elliot
05/12/2022, 3:16 PMJendrik Johannes
05/12/2022, 3:27 PM