标签:
我现在是这么做的:
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://repo.blueplanet.cn:8081/nexus/content/repositories/snapshots/") {
authentication(userName: "deployment", password: "deployment123")
}
addFilter(jar.baseName) {artifact, file -> artifact.name == jar.baseName}
addFilter(mock.baseName) {artifact, file -> artifact.name == mock.baseName}
pom(jar.baseName).version = version
pom(mock.baseName).version = version
}
}
}
如果有更简洁的方法,请告诉我一下哈。
标签:
原文地址:http://my.oschina.net/u/587047/blog/508185