如何将工件同时发布到两个或更多存储库?

时间:2013-10-20 13:12:02

标签: android maven gradle

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

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

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

            repository(url: githubRepositoryUrl)
        }
    }

0 个答案:

没有答案