plugin publishing tokens
This commit is contained in:
parent
9dd7afb136
commit
8ab124d5f3
|
@ -108,8 +108,8 @@ afterEvaluate {
|
||||||
|
|
||||||
gradle.taskGraph.whenReady { tg ->
|
gradle.taskGraph.whenReady { tg ->
|
||||||
// look for sys-prop or env-var overrides of the tokens used for publishing
|
// look for sys-prop or env-var overrides of the tokens used for publishing
|
||||||
if ( System.properties.hasProperty( 'gradle.publish.key' )
|
if ( System.properties.containsKey( 'gradle.publish.key' )
|
||||||
|| System.properties.hasProperty( 'gradle.publish.secret' )
|
|| System.properties.containsKey( 'gradle.publish.secret' )
|
||||||
|| System.getenv().containsKey( 'GRADLE_PUBLISH_KEY' )
|
|| System.getenv().containsKey( 'GRADLE_PUBLISH_KEY' )
|
||||||
|| System.getenv().containsKey( 'GRADLE_PUBLISH_SECRET' ) ) {
|
|| System.getenv().containsKey( 'GRADLE_PUBLISH_SECRET' ) ) {
|
||||||
// nothing to do - already explicitly set
|
// nothing to do - already explicitly set
|
||||||
|
|
Loading…
Reference in New Issue