mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
plugin publishing tokens
This commit is contained in:
parent
8ab124d5f3
commit
ac8a212393
@ -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 )
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user