-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
45 lines (38 loc) · 970 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
36
37
38
39
40
41
42
43
44
45
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
// arrayOf("gradle.properties", "gradle").forEach(::copyToBuildSrc)
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
rootProject.name = "pet-kmm"
include(":androidApp")
include(":common")
fun includeProject(name: String, filePath: String) {
include(name)
project(name).projectDir = File(filePath)
}
fun copyToBuildSrc(sourcePath: String) {
rootDir.resolve(sourcePath).copyRecursively(
target = rootDir.resolve("buildSrc").resolve(sourcePath),
overwrite = true,
)
rootDir.resolve(sourcePath).copyRecursively(
target = rootDir.resolve("buildSrc")
.resolve("buildSrc")
.resolve(sourcePath),
overwrite = true,
)
println("[DONE] copied $sourcePath")
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}