8000 Set nexus properties when provided · ETS-Android4/sqlcipher-android@753c165 · GitHub
[go: up one dir, main page]

Skip to content

Commit 753c165

Browse files
Set nexus properties when provided
1 parent 52b5fba commit 753c165

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ project.ext {
4444
if(project.hasProperty('nexusPassword')){
4545
nexusPassword = "${nexusPassword}"
4646
}
47-
nexusUsername = "${nexusUsername}"
48-
nexusPassword = "${nexusPassword}"
49-
nexusStagingProfileId = "${nexusStagingProfileId}"
47+
nexusUsername = project.hasProperty('nexusUsername') ? "${nexusUsername}" : ""
48+
nexusPassword = project.hasProperty('nexusPassword') ? "${nexusPassword}" : ""
49+
nexusStagingProfileId = project.hasProperty('nexusStagingProfileId') ? "${nexusStagingProfileId}" : ""
5050
}
5151

5252
nexusPublishing {

0 commit comments

Comments
 (0)
0