plugin publishing tokens

This commit is contained in:
Andrea Boriero 2021-08-04 19:08:17 +02:00
parent ac8a212393
commit 4c5b1cb2a8
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ afterEvaluate {
}
gradle.taskGraph.whenReady { tg ->
if ( tg.hasTask( project.tasks.publishPlugins ) ) {
if ( tg.hasTask( project.tasks.publishPlugins ) && project.tasks.publishPlugins.enabled ) {
// look for sys-prop or env-var overrides of the tokens used for publishing
if ( System.properties.containsKey( 'gradle.publish.key' )
|| System.properties.containsKey( 'gradle.publish.secret' )