-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
63 lines (55 loc) · 1.73 KB
/
settings.gradle.kts
File metadata and controls
63 lines (55 loc) · 1.73 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
62
63
import java.net.URI
rootProject.name = "KvColorPalette-Android-App"
listOf(
":ui-app"
).onEach {
include(it)
}
pluginManagement {
resolutionStrategy {
eachPlugin {
when(requested.id.toString()) {
in listOf(
"com.google.gms.google-services"
) -> useModule("com.google.gms:google-services:${requested.version}")
in listOf(
"kotlin-serialization"
) -> useModule("org.jetbrains.kotlin:kotlin-serialization:${requested.version}")
in listOf(
"kotlin-kapt"
) -> useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${requested.version}")
"com.google.dagger.hilt.android" -> useModule("com.google.dagger:hilt-android-gradle-plugin:${requested.version}")
else -> return@eachPlugin
}
}
}
repositories {
mavenCentral()
google()
}
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("./gradle/version-catalog/libs.versions.toml"))
}
}
repositories {
google()
mavenCentral()
maven { url = URI("https://jitpack.io") }
}
}
// This is for local development (Use this as a gradle composite build)
/*includeBuild("../KvColorPalette-Android") {
dependencySubstitution {
substitute(module("com.github.KvColorPalette:KvColorPalette-Android"))
.using(project(":kv-color-palette"))
}
}*/
/*includeBuild("../KvColorPicker-Android") {
dependencySubstitution {
substitute(module("com.github.KvColorPalette:KvColorPicker-Android"))
.using(project(":kv-color-picker"))
}
}*/