Skip to content

Commit 0d6cc8f

Browse files
author
Gerhard Dickescheid
committed
bugfix: property check didn't work as expected
1 parent 1f66962 commit 0d6cc8f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

build.gradle

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,18 @@ signing {
8787
}
8888

8989
archivesBaseName = 'ecs-gradle-plugin'
90+
if (!hasProperty('ossrhUsername')) {
91+
ext.ossrhUsername = ''
92+
}
93+
if (!hasProperty('ossrhPassword')) {
94+
ext.ossrhPassword = ''
95+
}
96+
9097
uploadArchives {
9198
repositories {
9299
mavenDeployer {
93100
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
94101

95-
96-
if (!hasProperty('ossrhUsername')) {
97-
ext.ossrhUsername = ''
98-
}
99-
if (!hasProperty('ossrhPassword')) {
100-
ext.ossrhPassword = ''
101-
}
102-
103-
104102
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
105103
authentication(userName: ossrhUsername, password: ossrhPassword)
106104
}

0 commit comments

Comments
 (0)