-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
52 lines (48 loc) · 1.54 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
/*
* Copyright (c) Milan Jurkulák 2024.
* Contact:
* e: [email protected]
* e: [email protected]
* w: https://mjdev.org
*/
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
@Suppress("JcenterRepositoryObsolete", "DEPRECATION")
jcenter()
maven(url = "https://www.jitpack.io")
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://mvn.dailymotion.com/repository/releases/")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven(url = "https://dl.bintray.com/kotlin/ktor")
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
gradlePluginPortal()
@Suppress("JcenterRepositoryObsolete", "DEPRECATION")
jcenter()
maven(url = "https://www.jitpack.io")
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://mvn.dailymotion.com/repository/releases/")
maven(url = "https://dl.bintray.com/kotlin/ktor")
}
}
fun Settings.includeAllModules() {
rootDir.walk().maxDepth(1).filter { file ->
val isBuildSrc = file.name == "buildSrc"
val isDirectory = file.isDirectory
val hasBuildScriptFile = file.resolve("build.gradle.kts").exists()
!isBuildSrc && isDirectory && hasBuildScriptFile
}.forEach {
include(":${it.name}")
}
}
rootProject.name = "TvApp"
includeAllModules()