I’ve got a couple of external dependencies whose names are “poorly” chosen. For example:
When it comes time to package up a distribution, the classpath is constructed by copying all of the artifacts to a single directory. Unfortunately, this leads to the artifact name ‘core-1.0.0.jar’ clashing.
It seems like flat classpaths for distributions are the opinionated standard. In theory though, the classpath doesn’t need to be a flat directory. Arguably, we could preserve the uniqueness much the same way that artifact repositories store the data (directory per package name hierarchy). Is there any way to have the Distribution plugin maintain uniqueness by structuring the classpath through a directory hierarchy?
Alternatively, is there a way to rename the artifacts? Specifically, smooshing the groups names into something like ‘com.XYZ.core-1.0.0.jar’ vs ‘com.ABC.core-1.0.0.jar’.