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