-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsettings.gradle.kts
55 lines (49 loc) · 1.32 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
52
53
54
55
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
includeBuild("build-logic")
includeBuild("lokalise-gradle-plugin")
repositories {
google()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven("https://maven.pkg.github.com/HedvigInsurance/odyssey") {
name = "odyssey"
credentials(PasswordCredentials::class)
}
maven("https://maven.pkg.github.com/HedvigInsurance/authlib") {
name = "authlib"
credentials(PasswordCredentials::class)
}
maven("https://jitpack.io")
}
}
rootProject.name = "hedvigandroid"
private val File.gradleModuleDescendants: Sequence<File>
get() = listFiles()
?.asSequence()
?.filter {
it.isDirectory
}
?.flatMap {
if (File(it, "build.gradle.kts").exists()) {
sequenceOf(it)
} else {
it.gradleModuleDescendants
}
} ?: emptySequence()
rootProject.projectDir
.resolve("app")
.gradleModuleDescendants
.forEach { file ->
include(file.name)
project(":${file.name}").projectDir = file
}
include("design-showcase")
project(":design-showcase").projectDir = rootProject.projectDir.resolve("micro-apps").resolve("design-showcase")
include("hedvig-lint")