-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsettings.gradle.kts
43 lines (42 loc) · 1.12 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
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
google()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
versionCatalogs {
create("instrumentation") {
from(files("./gradle/instrumentation.versions.toml"))
}
}
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal()
mavenCentral()
google()
}
}
rootProject.name = "elastic-otel-android"
includeBuild("build-tools")
include(":agent-api")
include(":agent-sdk")
include(":agent-plugin")
include(":agent-common")
includeFromDir("instrumentation")
includeFromDir("internal-tools", 2)
fun includeFromDir(dirName: String, maxDepth: Int = 3) {
val instrumentationDir = File(rootDir, dirName)
val separator = Regex("[/\\\\]")
instrumentationDir.walk().maxDepth(maxDepth).forEach {
if (it.name.equals("build.gradle.kts")) {
include(
":$dirName:${
it.parentFile.toRelativeString(instrumentationDir).replace(separator, ":")
}"
)
}
}
}