美文网首页
Maven上传aar排除XXX

Maven上传aar排除XXX

作者: 曾经的曾经兜是曾经 | 来源:发表于2017-11-08 17:58 被阅读0次

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)
    }
}

}

相关文章

网友评论

      本文标题:Maven上传aar排除XXX

      本文链接:https://www.haomeiwen.com/subject/dumymxtx.html