Skip to content

Commit 75a5fed

Browse files
committed
Update file
1 parent b968677 commit 75a5fed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ signing {
210210
sign publishing.publications.boxJavaSdk
211211
}
212212

213+
def centralUsername = project.findProperty("centralUsername")
214+
def centralPassword = project.findProperty("centralPassword")
213215
jreleaser {
214216
signing {
215217
active = "NEVER"
@@ -222,8 +224,8 @@ jreleaser {
222224
active = 'RELEASE'
223225
url = 'https://central.sonatype.com/api/v1/publisher'
224226
stagingRepository('build/staging-deploy')
225-
username = project.hasProperty("centralUsername") ? project.property("centralUsername") : centralUsername
226-
password = project.hasProperty("centralPassword") ? project.property("centralPassword") : centralPassword
227+
username = centralUsername
228+
password = centralPassword
227229
}
228230
}
229231

0 commit comments

Comments
 (0)