File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
src/main/groovy/org/grails/gradle/plugin/publishing/internal Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1- projectVersion =4.0.10 -SNAPSHOT
1+ projectVersion =4.0.11 -SNAPSHOT
22grailsVersion =4.0.10
33springBootVersion =2.1.18.RELEASE
44groovyVersion =2.5.14
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import org.gradle.plugins.signing.SigningPlugin
3333
3434import static com.bmuschko.gradle.nexus.NexusPlugin.getSIGNING_KEY_ID
3535import static com.bmuschko.gradle.nexus.NexusPlugin.getSIGNING_PASSWORD
36+ import static com.bmuschko.gradle.nexus.NexusPlugin.getSIGNING_KEYRING
3637
3738/**
3839 * A plugin to setup publishing to Grails central repo
@@ -105,12 +106,10 @@ BINTRAY_KEY=key
105106
106107 final ExtraPropertiesExtension extraPropertiesExtension = extensionContainer. findByType(ExtraPropertiesExtension )
107108
108- if (! project. hasProperty(SIGNING_KEY_ID )) {
109- extraPropertiesExtension. setProperty(SIGNING_KEY_ID , System . getenv(" SIGNING_KEY" ) ?: null )
110- }
111- if (! project. hasProperty(SIGNING_PASSWORD )) {
112- extraPropertiesExtension. setProperty(SIGNING_PASSWORD , System . getenv(" SIGNING_PASSPHRASE" ) ?: null )
113- }
109+ extraPropertiesExtension. setProperty(SIGNING_KEY_ID , project. hasProperty(SIGNING_KEY_ID ) ? project[SIGNING_KEY_ID ] : System . getenv(" SIGNING_KEY" ) ?: null )
110+ extraPropertiesExtension. setProperty(SIGNING_PASSWORD , project. hasProperty(SIGNING_PASSWORD ) ? project[SIGNING_PASSWORD ] : System . getenv(" SIGNING_PASSPHRASE" ) ?: null )
111+ extraPropertiesExtension. setProperty(SIGNING_KEYRING , project. hasProperty(SIGNING_KEYRING ) ? project[SIGNING_KEYRING ] : System . getenv(" SIGNING_KEYRING" ) ?: null )
112+
114113
115114 project. afterEvaluate {
116115 boolean isSnapshot = project. version. endsWith(" SNAPSHOT" )
You can’t perform that action at this time.
0 commit comments