Android library dependencies missing from POM with Gradle

后端 未结 2 2017
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 02:51

I am using Gradle to build an Android library project and deploy it to maven repository as an aar.

The library has some dependencies, which should be included in the

2条回答
  •  囚心锁ツ
    2020-12-11 02:59

    try mavenDeployer: http://gradle.org/docs/current/userguide/maven_plugin.html

    uploadArchives {
        repositories {
            mavenDeployer {
                repository(url: "file://localhost/tmp/myRepo/")
                pom.version = '1.0Maven'
                pom.artifactId = 'myMavenName'
            }
        }
    }
    

    here you could set the pom details. You'll get a new goal called uploadArchives. When executed, it deploys to a given repo.

提交回复
热议问题