如何设置gradle脚本以便我可以同时将工件发布到两个或更多存储库?(不仅是本地存储库,也可能是所有在线存储库。)
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: sonatypeRepositoryUrl) {
authentication(userName: nexusUsername, password: nexusPassword)
}
repository(url: githubRepositoryUrl)
}
}