-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsettings.gradle.kts
45 lines (39 loc) · 1.15 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
rootProject.name = "mahjongutils"
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
mavenLocal()
}
}
include(":composeApp")
val envPropFile = file("env.properties")
val mahjongUtilsLibPath = file("external/mahjong-utils")
if (mahjongUtilsLibPath.resolve("build.gradle.kts").exists()) {
if (envPropFile.exists()) {
envPropFile.copyTo(mahjongUtilsLibPath.resolve("env.properties"), overwrite = true)
}
includeBuild(mahjongUtilsLibPath.path) {
name = "mahjong-utils-lib"
dependencySubstitution {
substitute(module("io.github.ssttkkl:mahjong-utils")).using(project(":mahjong-utils"))
}
}
}
val capturableLibPath = file("external/Capturable")
if (envPropFile.exists()) {
envPropFile.copyTo(capturableLibPath.resolve("env.properties"), overwrite = true)
}
includeBuild(capturableLibPath.path) {
dependencySubstitution {
substitute(module("dev.shreyaspatil:capturable")).using(project(":capturable"))
}
}