plugin publishing tokens

This commit is contained in:
Steve Ebersole 2021-08-04 07:41:56 -05:00
parent 9dd7afb136
commit 8ab124d5f3
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ afterEvaluate {
gradle.taskGraph.whenReady { tg ->
// look for sys-prop or env-var overrides of the tokens used for publishing
if ( System.properties.hasProperty( 'gradle.publish.key' )
|| System.properties.hasProperty( 'gradle.publish.secret' )
if ( System.properties.containsKey( 'gradle.publish.key' )
|| System.properties.containsKey( 'gradle.publish.secret' )
|| System.getenv().containsKey( 'GRADLE_PUBLISH_KEY' )
|| System.getenv().containsKey( 'GRADLE_PUBLISH_SECRET' ) ) {
// nothing to do - already explicitly set