Skip to content

Commit 7ed6d24

Browse files
committed
[#1681] Upgrade nu.studer.credentials gradle plugin to 3
1 parent 4c57643 commit 7ed6d24

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'java-library'
55
id 'maven-publish'
66
id 'com.diffplug.spotless' version '6.18.0'
7-
id 'nu.studer.credentials' version '2.2'
7+
id 'nu.studer.credentials' version '3.0'
88
id 'org.asciidoctor.jvm.convert' version '3.3.2' apply false
99
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
1010
}
@@ -14,17 +14,17 @@ ext {
1414
// or stored locally using the gradle-credentials-plugin.
1515
// See below for the name of project properties.
1616
// See https://github.com/etiennestuder/gradle-credentials-plugin to store credentials locally.
17-
if (!project.hasProperty('jbossNexusUser')) {
18-
jbossNexusUser = credentials.jbossNexusUser
17+
if ( !project.hasProperty( 'jbossNexusUser' ) ) {
18+
jbossNexusUser = credentials.forKey( 'jbossNexusUser' )
1919
}
20-
if (!project.hasProperty('jbossNexusPassword')) {
21-
jbossNexusPassword = credentials.jbossNexusPassword
20+
if ( !project.hasProperty( 'jbossNexusPassword' ) ) {
21+
jbossNexusPassword = credentials.forKey( 'jbossNexusPassword' )
2222
}
23-
if (!project.hasProperty('sonatypeOssrhUser')) {
24-
sonatypeOssrhUser = credentials.sonatypeOssrhUser
23+
if ( !project.hasProperty( 'sonatypeOssrhUser' ) ) {
24+
sonatypeOssrhUser = credentials.forKey( 'sonatypeOssrhUser' )
2525
}
26-
if (!project.hasProperty('sonatypeOssrhPassword')) {
27-
sonatypeOssrhPassword = credentials.sonatypeOssrhPassword
26+
if ( !project.hasProperty( 'sonatypeOssrhPassword' ) ) {
27+
sonatypeOssrhPassword = credentials.forKey( 'sonatypeOssrhPassword' )
2828
}
2929
}
3030

0 commit comments

Comments
 (0)