How to use pom type dependency in Gradle
问题 I need to produce transitive dependency from my Java library which is of type pom. Here is an example on how I'm doing it: plugins { `java-library` `maven-publish` } repositories { // some maven repo } dependencies { // This is POM type dependency: api("org.apache.sshd:apache-sshd:1.6.0") { exclude(group = "org.slf4j") } } publications { create<MavenPublication>("maven") { from(components["java"]) } } The problem with this configuration is that in the published pom.xml of my library the