-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
30 lines (28 loc) · 1.06 KB
/
settings.gradle.kts
File metadata and controls
30 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pluginManagement {
val repoUrl = providers.gradleProperty("repoUrl")
val codeartifactUrl = providers.environmentVariable("CODEARTIFACT_URL")
.orElse(providers.gradleProperty("codeartifact.url"))
.orElse("https://timgroup-148217964156.d.codeartifact.eu-west-1.amazonaws.com/maven/jars/")
val codeartifactToken = providers.environmentVariable("CODEARTIFACT_TOKEN")
.orElse(providers.gradleProperty("codeartifact.token"))
repositories {
gradlePluginPortal()
if (repoUrl.isPresent) {
maven(url = "${repoUrl.get()}/groups/public") {
name = "nexus"
isAllowInsecureProtocol = true
}
}
if (codeartifactUrl.isPresent && codeartifactToken.isPresent) {
maven(url = codeartifactUrl.get()) {
name = "codeartifact"
credentials {
username = "aws"
password = codeartifactToken.get()
}
}
}
}
}
rootProject.name = "Matchers"
include("http-client")