Gradle not including dependencies in published pom.xml

前端 未结 7 1955
囚心锁ツ
囚心锁ツ 2020-12-02 06:26

I have a Gradle project I\'m using the maven-publisher plugin to install my android library to maven local and a maven repo.

That works, but the g

7条回答
  •  甜味超标
    2020-12-02 07:12

    I guess it has something to do with the from components.java directive, as seen in the guide. I had a similar setup and it made the difference to add the line into the publication block:

    publications {
        mavenJar(MavenPublication) {
            artifactId 'rest-security'
            artifact jar
            from components.java
        }
    }
    

提交回复
热议问题