-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
80 lines (74 loc) · 2.28 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
80 lines (74 loc) · 2.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal()
google()
mavenCentral()
maven {
// Mapbox Maven repository
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
}
maven {
// ArcGIS Maven repository
url = uri("https://esri.jfrog.io/artifactory/arcgis")
}
maven {
// TomTom Orbis Maps SDK repository
url = uri("https://repositories.tomtom.com/artifactory/maven")
}
maven {
// Longdo Map API3 SDK repository
url = uri("https://maven.longdo.com/artifactory/libs-release-public")
}
maven {
// Mappls (MapmyIndia) Maven repository
url = uri("https://maven.mappls.com/repository/mappls/")
}
if (System.getenv("GPR_USER") != null && System.getenv("GPR_TOKEN") != null) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/mapconductor/android-sdk")
credentials {
username = System.getenv("GPR_USER")
password = System.getenv("GPR_TOKEN")
}
content { includeGroup("com.mapconductor") }
}
}
flatDir {
dirs(rootDir.resolve("libs"))
}
}
}
rootProject.name = "MapConductorSDK"
val modulesProp =
rootDir
.resolve("projects.properties")
.readText()
.lines()
.joinToString("")
.substringAfter("modules=")
.substringBefore("\n#")
.substringBefore("\nmodules.")
.replace("\\", "")
.split(",")
.map { it.trim() }
.filter { it.isNotEmpty() }
modulesProp.forEach { include(":$it") }
include(":android-for-tomtom:sample-app")