This is an automated email from the ASF dual-hosted git repository. thw pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/beam.git
commit efeb37b8a58d7c6a3dfc7df4c066462f559f9715 Author: Thomas Weise <[email protected]> AuthorDate: Wed Aug 15 07:23:43 2018 -0700 Allow custom server ID for publishing Java artifacts. --- .../src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy index 5503e6b..630602d 100644 --- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy +++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy @@ -836,7 +836,8 @@ artifactId=${project.name} // </settings> def settingsXml = new File(System.getProperty('user.home'), '.m2/settings.xml') if (settingsXml.exists()) { - def serverId = (isRelease(project) ? 'apache.releases.https' : 'apache.snapshots.https') + def serverId = (project.properties['distMgmtServerId'] ?: isRelease(project) + ? 'apache.releases.https' : 'apache.snapshots.https') def m2SettingCreds = new XmlSlurper().parse(settingsXml).servers.server.find { server -> serverId.equals(server.id.text()) } if (m2SettingCreds) { credentials {
