File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ kotlin {
200
200
url = uri(if (version.toString().endsWith(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl)
201
201
202
202
credentials {
203
- val nexusUsername: String? = System .getenv(" nexus.username" ) ? : project.extra[" nexusUsername" ] as ? String
204
- val nexusPassword: String? = System .getenv(" nexus.password" ) ? : project.extra[" nexusPassword" ] as ? String
203
+ val nexusUsername: String? = System .getenv(" nexus.username" ) ? : if ( project.extra.has( " nexusUsername " )) project.extra [" nexusUsername" ] as ? String else null
204
+ val nexusPassword: String? = System .getenv(" nexus.password" ) ? : if ( project.extra.has( " nexusPassword " )) project.extra [" nexusPassword" ] as ? String else null
205
205
username = nexusUsername
206
206
password = nexusPassword
207
207
}
You can’t perform that action at this time.
0 commit comments