同時に 2 つ以上のリポジトリにアーティファクトを公開できるように gradle スクリプトを設定するにはどうすればよいですか? (ローカル リポジトリだけでなく、すべてのオンライン リポジトリの場合もあります。)
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: sonatypeRepositoryUrl) {
authentication(userName: nexusUsername, password: nexusPassword)
}
repository(url: githubRepositoryUrl)
}
}