plugin publishing tokens

This commit is contained in:
Steve Ebersole 2021-08-04 11:17:25 -05:00
parent 8ab124d5f3
commit ac8a212393

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' )
@ -125,4 +126,5 @@ gradle.taskGraph.whenReady { tg ->
System.setProperty( 'gradle.publish.key', credentials.hibernatePluginPortalUsername )
System.setProperty( 'gradle.publish.secret', credentials.hibernatePluginPortalPassword )
}
}
}