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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top