File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ dependencyResolutionManagement {
33 mavenCentral()
44 maven {
55 url = uri(" https://repository.caplin.com/repository/caplin-release" )
6- credentials {
7- val caplinUsername: String? by settings
8- val caplinPassword: String? by settings
9- username = caplinUsername ? : System .getenv(" CAPLIN_USERNAME" )
10- password = caplinPassword ? : System .getenv(" CAPLIN_PASSWORD" )
6+ val caplinUsername: String? by settings
7+ val caplinPassword: String? by settings
8+ val username = caplinUsername ? : System .getenv(" CAPLIN_USERNAME" )
9+ val password = caplinPassword ? : System .getenv(" CAPLIN_PASSWORD" )
10+ if (username != null || password != null ) {
11+ credentials {
12+ this .username = username
13+ this .password = password
14+ }
1115 }
1216 }
1317 }
You can’t perform that action at this time.
0 commit comments