Question

I have a project that publishes two artifacts to a Maven repo with Gradle.

I would like to publish a third "empty" artifact that could serve as a meta/virtual package for the other two, so that any other project could reference just the meta artifact as a dependency and get the two real dependencies.

Is this possible? I couldn't find anything similar to what I need in the docs. Thanks in advance.

Was it helpful?

Solution

Maven BOMs aren't currently supported by Gradle. You might be able to publish one, but consuming it from Gradle won't have the desired effect.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top