-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
53 lines (50 loc) · 1.66 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
53 lines (50 loc) · 1.66 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
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()
if (!System.getenv("GPR_USER").isNullOrEmpty() && !System.getenv("GPR_TOKEN").isNullOrEmpty()) {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/mapconductor/android-for-googlemaps")
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-googlemaps"
if (providers
.gradleProperty("skipSampleApp")
.map(String::toBoolean)
.getOrElse(false)
.not()
) {
include(":sample-app")
}