1

如何设置 gradle 脚本,以便我可以同时将工件发布到两个或多个存储库?(不仅是本地存储库,可能是所有在线存储库。)

   uploadArchives {
    repositories {
        mavenDeployer {
            beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

            repository(url: sonatypeRepositoryUrl) {
                authentication(userName: nexusUsername, password: nexusPassword)
            }

            repository(url: githubRepositoryUrl)
        }
    }
4

0 回答 0