This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 251e8a4  Build: Allow customizing maven publication repo (#2574)
251e8a4 is described below

commit 251e8a4e6b72a3f9afd277d10e8b5da4694e0acb
Author: Cheng Pan <[email protected]>
AuthorDate: Thu May 20 08:16:12 2021 +0800

    Build: Allow customizing maven publication repo (#2574)
---
 deploy.gradle | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/deploy.gradle b/deploy.gradle
index 02f877b..a2a5104 100644
--- a/deploy.gradle
+++ b/deploy.gradle
@@ -111,8 +111,10 @@ subprojects {
           password project.hasProperty('mavenPassword') ? "$mavenPassword" : ""
         }
         // upload to the releases repository using ./gradlew -Prelease publish
-        def snapshotsRepoUrl = 
'https://repository.apache.org/content/repositories/snapshots'
-        def releasesRepoUrl = 
'https://repository.apache.org/service/local/staging/deploy/maven2'
+        def apacheSnapshotsRepoUrl = 
'https://repository.apache.org/content/repositories/snapshots'
+        def apacheReleasesRepoUrl = 
'https://repository.apache.org/service/local/staging/deploy/maven2'
+        def snapshotsRepoUrl = project.hasProperty('mavenSnapshotsRepo') ? 
"$mavenSnapshotsRepo" : "$apacheSnapshotsRepoUrl"
+        def releasesRepoUrl = project.hasProperty('mavenReleasesRepo') ? 
"$mavenReleasesRepo" : "$apacheReleasesRepoUrl"
         url = project.hasProperty('release') ? releasesRepoUrl : 
snapshotsRepoUrl
       }
     }

Reply via email to