-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.gradle.kts
41 lines (36 loc) · 1.02 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
//enableFeaturePreview("VERSION_CATALOGS")
pluginManagement {
repositories {
mavenLocal()
maven("https://mirrors.tencent.com/nexus/repository/maven-public/")
gradlePluginPortal()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
resolutionStrategy {
eachPlugin {
val module = when(requested.id.id) {
"kotlinx-atomicfu" -> "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${requested.version}"
else -> null
}
if(module != null) {
useModule(module)
}
}
}
}
rootDir.walkTopDown().maxDepth(2).filter {
it.isDirectory && File(it, "build.gradle.kts").exists() && it.name != "buildSrc"
}.forEach {
include(":" + it.toRelativeString(rootDir).replace(File.separator, ":"))
}
val local = file("composite_build.local")
if (local.exists()) {
local.readLines().forEach {
val f = file("../$it")
if (f.exists()) {
includeBuild(f)
}
}
}
include(":android-app")