我现在是这么做的:
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
}
}
}
如果有更简洁的方法,请告诉我一下哈。
时间: 2024-11-05 04:21:21