-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
49 lines (47 loc) · 1.65 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
49 lines (47 loc) · 1.65 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
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
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")
}
if (!System.getenv("GPR_USER").isNullOrEmpty() && !System.getenv("GPR_TOKEN").isNullOrEmpty()) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/mapconductor/android-for-mapbox")
credentials {
username = System.getenv("GPR_USER") ?: ""
password = System.getenv("GPR_TOKEN") ?: ""
}
}
}
if (!System.getenv("GPR_USER").isNullOrEmpty() || !System.getenv("GITHUB_ACTOR").isNullOrEmpty()) {
maven {
name = "GithubPackages-core"
url = uri("https://maven.pkg.github.com/MapConductor/android-sdk-core")
credentials {
username = System.getenv("GPR_USER") ?: System.getenv("GITHUB_ACTOR") ?: ""
password = System.getenv("GPR_TOKEN") ?: System.getenv("GITHUB_TOKEN") ?: ""
}
}
}
}
}
rootProject.name = "android-for-mapbox"
include(":sample-app")