Maven上传aar排除XXX

apply plugin: 'maven'

uploadArchives {
repositories.mavenDeployer {
repository(url: "http://192.168.4.102:8099/nexus/content/repositories/snapshots/") {
authentication(userName: maven_account, password: maven_password)
}
pom.version = LIB_SNAPSHOT
pom.artifactId = "zxing"
pom.groupId = "com.readyidu.health"
pom.name = "zxing"
pom.packaging = "aar"

    //去除对common的引用
    pom.whenConfigured { pom ->
        def basic1 = pom.dependencies.find { dep -> dep.groupId == 'PocketHealth-android' && dep.artifactId == 'basic' }
        pom.dependencies.remove(basic1)

        def basic = pom.dependencies.find { dep -> dep.groupId == 'com.readyidu.health' && dep.artifactId == 'basic' }
        pom.dependencies.remove(basic)
    }
}

}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容