forked from kittinunf/fuel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
45 lines (42 loc) · 1.2 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
pluginManagement {
repositories {
google()
mavenCentral()
jcenter()
maven(url = "https://plugins.gradle.org/m2/")
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == Android.libPlugin) {
useModule("com.android.tools.build:gradle:${requested.version}")
}
if (requested.id.id == Jacoco.Android.plugin) {
useModule("com.dicedmelon.gradle:jacoco-android:${requested.version}")
}
if (requested.id.id == KotlinX.Serialization.plugin) {
useModule("org.jetbrains.kotlin:kotlin-serialization:${requested.version}")
}
}
}
}
val projects = listOf(
Fuel.name,
Fuel.Android.name,
Fuel.Coroutines.name,
Fuel.Forge.name,
Fuel.Gson.name,
Fuel.Jackson.name,
Fuel.Json.name,
Fuel.KotlinSerialization.name,
Fuel.LiveData.name,
Fuel.Moshi.name,
Fuel.Reactor.name,
Fuel.RxJava.name,
Fuel.Stetho.name,
Fuel.Test.name
)
include(*(projects.toTypedArray()))
val includeSample: String by settings
if (includeSample == "true") {
include(":sample")
}