-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
61 lines (49 loc) · 1.28 KB
/
settings.gradle.kts
File metadata and controls
61 lines (49 loc) · 1.28 KB
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
56
57
58
59
60
61
import com.michaelflisar.kmpdevtools.SettingsFileUtil
import com.michaelflisar.kmpdevtools.core.configs.LibraryConfig
dependencyResolutionManagement {
repositories {
mavenCentral()
google()
gradlePluginPortal()
maven("https://jitpack.io")
mavenLocal()
}
versionCatalogs {
create("app") {
from(files("gradle/app.versions.toml"))
}
create("deps") {
from(files("gradle/deps.versions.toml"))
}
}
}
pluginManagement {
repositories {
mavenCentral()
google()
gradlePluginPortal()
maven("https://jitpack.io")
mavenLocal()
}
}
// --------------
// Settings Plugin
// --------------
plugins {
// version catalogue does not work here!
id("io.github.mflisar.kmpdevtools.plugins-settings-gradle") version "7.6.0"
}
// --------------
// Library
// --------------
val libraryConfig = LibraryConfig.read(rootProject)
val libraryName = libraryConfig.libraryName()
// Library Modules
SettingsFileUtil.includeModules(settings, libraryName, libraryConfig)
SettingsFileUtil.includeDokkaModule(settings)
// --------------
// App
// --------------
if (System.getenv("CI") != "true") {
SettingsFileUtil.includeModulesInFolder(settings, "demo")
}