We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efbcdb4 commit 6f58e12Copy full SHA for 6f58e12
1 file changed
settings.gradle.kts
@@ -3,11 +3,15 @@ dependencyResolutionManagement {
3
mavenCentral()
4
maven {
5
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")
+ val caplinUsername: String? by settings
+ val caplinPassword: String? by settings
+ val username = caplinUsername ?: System.getenv("CAPLIN_USERNAME")
+ val password = caplinPassword ?: System.getenv("CAPLIN_PASSWORD")
+ if (username != null || password != null) {
11
+ credentials {
12
+ this.username = username
13
+ this.password = password
14
+ }
15
}
16
17
0 commit comments