forked from slackhq/slack-lints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
35 lines (31 loc) · 877 Bytes
/
settings.gradle.kts
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
31
32
33
34
35
// Copyright (C) 2021 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
import java.util.Locale
pluginManagement {
repositories {
mavenCentral()
google()
// Last because this proxies jcenter!
gradlePluginPortal()
}
}
dependencyResolutionManagement {
versionCatalogs {
if (System.getenv("DEP_OVERRIDES") == "true") {
val overrides = System.getenv().filterKeys { it.startsWith("DEP_OVERRIDE_") }
maybeCreate("libs").apply {
for ((key, value) in overrides) {
val catalogKey = key.removePrefix("DEP_OVERRIDE_").lowercase(Locale.getDefault())
println("Overriding $catalogKey with $value")
version(catalogKey, value)
}
}
}
}
repositories {
google()
mavenCentral()
}
}
rootProject.name = "slack-lints"
include(":slack-lint-checks", ":slack-lint-annotations")