-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
61 lines (49 loc) · 1.68 KB
/
settings.gradle.kts
File metadata and controls
61 lines (49 loc) · 1.68 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 java.util.Properties
include(":apps:employee")
include(":apps:driver")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
val propertiesFiles = listOf("local.properties", "defaults.properties")
setProjectProperties(propertiesFiles)
fun setProjectProperties(files: List<String>) = files.forEach {
Properties().apply {
load(file(it).inputStream())
forEach { key, value ->
if (extra.has(key.toString())) {
if ((extra[key.toString()] as? String).isNullOrEmpty())
extra.set(key.toString(), value.toString().replace("\"", ""))
} else {
extra.set(key.toString(), value.toString().replace("\"", ""))
}
}
}
}
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven(url = "https://jitpack.io")
maven(url = "https://developer.huawei.com/repo/")
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = "https://developer.huawei.com/repo/")
maven(url = "https://jitpack.io")
// Mapbox Maven repository
maven(url = "https://api.mapbox.com/downloads/v2/releases/maven") {
val mapboxDownloadToken: String = extra.get("MAPBOX_DOWNLOAD_TOKEN") as String
credentials.username = "mapbox"
credentials.password = mapboxDownloadToken
authentication.create<BasicAuthentication>("basic")
}
}
}
rootProject.name = "Mafraq"
include("apps:employee")
include(":data")
include(":presentation")