-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
65 lines (58 loc) · 2.29 KB
/
settings.gradle.kts
File metadata and controls
65 lines (58 loc) · 2.29 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
pluginManagement {
includeBuild("build-logic")
includeBuild("gradle-plugins")
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
val localProperties = java.util.Properties().apply {
val localPropertiesFile = file("local.properties")
if (localPropertiesFile.exists()) {
load(localPropertiesFile.inputStream())
}
}
// The Artifactory credentials for the ArcGIS Maps SDK for Kotlin repository.
// First look for the credentials provided via command line (for CI builds), if not found,
// take the one defined in local.properties.
// CI builds pass -PartifactoryUrl=${ARTIFACTORY_URL} -PartifactoryUser=${ARTIFACTORY_USER} -PartifactoryPassword=${ARTIFACTORY_PASSWORD}
val artifactoryUrl: String =
providers.gradleProperty("artifactoryUrl").orNull
?: localProperties.getProperty("artifactoryUrl")
?: ""
val artifactoryUsername: String =
providers.gradleProperty("artifactoryUsername").orNull
?: localProperties.getProperty("artifactoryUsername")
?: ""
val artifactoryPassword: String =
providers.gradleProperty("artifactoryPassword").orNull
?: localProperties.getProperty("artifactoryPassword")
?: ""
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://esri.jfrog.io/artifactory/arcgis") }
maven(url = "https://jitpack.io")
}
}
rootProject.name = "ArcGISMapsKotlinSamples"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(":app")
include(":samples-lib")
// dynamically include all sample libraries
File("samples/").listFiles()?.filter { !it.name.contains(".DS_Store") }?.forEach { sampleFolder ->
if (sampleFolder.listFiles()?.find { it.name.equals("build.gradle.kts") } != null){
// include all of the samples, which have been changed into libs of the sample viewer app
include(":samples:" + sampleFolder.name)
project(":samples:" + sampleFolder.name).projectDir = file("samples/" + sampleFolder.name)
}
}