plugin publishing tokens

This commit is contained in:
Steve Ebersole 2021-08-04 11:17:25 -05:00
parent 8ab124d5f3
commit ac8a212393
1 changed files with 17 additions and 15 deletions

View File

@ -107,6 +107,7 @@ afterEvaluate {
}
gradle.taskGraph.whenReady { tg ->
if ( tg.hasTask( project.tasks.publishPlugins ) ) {
// 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' )
@ -126,3 +127,4 @@ gradle.taskGraph.whenReady { tg ->
System.setProperty( 'gradle.publish.secret', credentials.hibernatePluginPortalPassword )
}
}
}