I have an existing pom.xml file which has dependencyManagement version. this file is deployed to a central repository (Nexus-like) used by multiple projects throughout the company.
multiple maven projects refer to that pom file as “parent”.
then they declare dependencies without specifying their versions because those come from the parent pom file.
now I want to create a Gradle project that could use that pom.xml file to inherit dependency versions as well. is that possible?
for now I can ignore build plugins or dependencies declared in that parent, I’m mostly interested in inheriting specific version numbers plus maybe properties coming from the parent pom.xml file.
e.g. if the parent pom.xml file says “when you use Apache libraryX, you should use version Y” and then I can declare in my build.gradle file:
- refer to this pom file in the central repository
- use Apache LibraryX without specifying version number - because that will come from the pom file