-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
51 lines (50 loc) · 1.3 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
// Version catalog is not supported here.
id("com.gradle.enterprise") version "3.12.6"
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
exclusiveContent {
forRepository {
google()
}
filter {
includeGroupByRegex("androidx.*")
}
}
}
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
if (System.getenv("CI").toBoolean()) {
publishAlways()
tag("CI")
}
}
}
rootProject.name = "Pocket CI"
rootDir.walk().maxDepth(2).filter {
val notBuildSrc = it.name != "buildSrc"
val notTemplateDir = !it.name.contains("template")
val containsBuildFile = File(it, "build.gradle").exists() || File(it, "build.gradle.kts").exists()
notBuildSrc && notTemplateDir && containsBuildFile
}.forEach {
if (it.parentFile == rootDir) {
include(it.name)
} else {
include("${it.parentFile.name}:${it.name}")
}
}