I have a subproject (project-one) that is dependent on another subproject (project-two). The dependency is listed in project-two’s build.gradle as follows:
I am using gradle to publish these artifacts to Maven using the MavenDeployer and uploadArchives task. My projects use a versioning scheme (X.Y.Z.B[-SNAPSHOT]) that is different than what Maven expects (X.Y.Z[-SNAPSHOT]).
When generating the POM for each of the sub projects, within the MavenDeployer, I am able to set
pom.version = 'X.Y.Z[-SNAPSHOT]'
The problem is that, the project-two’s dependency on the artifact for project-one is being written to project-two’s POM using the X.Y.Z.B[-SNAPSHOT] versioning scheme instead of X.Y.Z[-SNAPSHOT].
Is there a way for me to override or manually set the version of a subproject dependency that is placed in the POM file?