You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/02/25 03:41:55 UTC

[groovy] branch master updated: tweak to test snapshot publication on jenkins CI

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d8819bd  tweak to test snapshot publication on jenkins CI
d8819bd is described below

commit d8819bdf9da20e4a73a9bb1698508e1d71ad9e5a
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Feb 25 13:41:46 2021 +1000

    tweak to test snapshot publication on jenkins CI
---
 buildSrc/src/main/groovy/org.apache.groovy-published-library.gradle | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/buildSrc/src/main/groovy/org.apache.groovy-published-library.gradle b/buildSrc/src/main/groovy/org.apache.groovy-published-library.gradle
index 794705b..3acc694 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-published-library.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-published-library.gradle
@@ -26,8 +26,8 @@ publishing {
                     ? 'https://repository.apache.org/content/repositories/snapshots'
                     : 'https://repository.apache.org/service/local/staging/deploy/maven2'
             credentials {
-                username findProperty('apacheUser')
-                password findProperty('apachePassword')
+                username findProperty('groovyVersion').contains('SNAPSHOT') ? findProperty('asfNexusUsername') : findProperty('apacheUser')
+                password findProperty('groovyVersion').contains('SNAPSHOT') ? findProperty('asfNexusPassword') : findProperty('apachePassword')
             }
         }
     }