@@ -156,10 +156,10 @@ jreleaser {
156
156
signing {
157
157
active = ' ALWAYS'
158
158
armored = true
159
- def publicKey = System . getenv(' GPG_PUBLIC_KEY ' )?. decodeBase64() ?
160
- new String (System . getenv(' GPG_PUBLIC_KEY ' ). decodeBase64()) : ' '
161
- def secretKey = System . getenv(' GPG_SIGNING_KEY ' )?. decodeBase64() ?
162
- new String (System . getenv(' GPG_SIGNING_KEY ' ). decodeBase64()) : ' '
159
+ def publicKey = System . getenv(' JRELEASER_GPG_PUBLIC_KEY ' )?. decodeBase64() ?
160
+ new String (System . getenv(' JRELEASER_GPG_PUBLIC_KEY ' ). decodeBase64()) : ' '
161
+ def secretKey = System . getenv(' JRELEASER_GPG_SECRET_KEY ' )?. decodeBase64() ?
162
+ new String (System . getenv(' JRELEASER_GPG_SECRET_KEY ' ). decodeBase64()) : ' '
163
163
164
164
if (publicKey) {
165
165
System . setProperty(' jreleaser.gpg.public.key' , publicKey)
@@ -168,28 +168,13 @@ jreleaser {
168
168
System . setProperty(' jreleaser.gpg.secret.key' , secretKey)
169
169
}
170
170
171
- def passphrase = System . getenv(' GPG_PASSPHRASE' )
172
- if (passphrase) {
173
- System . setProperty(' jreleaser.gpg.passphrase' , passphrase)
174
- }
175
171
}
176
172
deploy {
177
173
maven {
178
174
mavenCentral {
179
175
sonatype {
180
176
active = ' ALWAYS'
181
177
url = ' https://central.sonatype.com/api/v1/publisher'
182
- def sonatype_user = System . getenv(' JRELEASER_MAVENCENTRAL_USERNAME' )
183
- def sonatype_pass = System . getenv(' JRELEASER_MAVENCENTRAL_PASSWORD' )
184
- if (sonatype_user) {
185
- System . setProperty(' jreleaser.mavencentral.username' , sonatype_user)
186
- }
187
- if (sonatype_pass) {
188
- System . setProperty(' jreleaser.mavencentral.password' , sonatype_pass)
189
- }
190
- if (! sonatype_user || ! sonatype_pass) {
191
- logger. warn(' Sonatype credentials are missing. This may cause deployment issues.' )
192
- }
193
178
verifyPom = false
194
179
stagingRepository(' build/staging-deploy' )
195
180
}
@@ -199,4 +184,4 @@ jreleaser {
199
184
}
200
185
201
186
afterReleaseBuild. dependsOn publish
202
- publish. finalizedBy publishPlugins
187
+ // publish.finalizedBy publishPlugins
0 commit comments