forked from Esri/arcgis-maps-sdk-kotlin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
87 lines (78 loc) · 2.89 KB
/
settings.gradle.kts
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
81
82
83
84
85
86
87
/*
*
* Copyright 2023 Esri
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import org.gradle.configurationcache.extensions.capitalized
// add new module to this list will declare a new toolkit module(Ex: "newComponent") with that name
// and also add a companion micro app(Ex: "newComponent-app").
// For mismatching toolkit component and microApp names add them individually at end of this file.
// Refer to "indoors" project with "floor-filter-app" as an example.
val projects = listOf("template", "authentication", "compass")
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
// The version of the ArcGIS Maps SDK for Kotlin dependency
val sdkVersionNumber: String by settings
// The build number of the ArcGIS Maps SDK for Kotlin dependency
val sdkBuildNumber: String by settings
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
@Suppress("UnstableApiUsage")
repositories {
google()
mavenCentral()
maven {
url = java.net.URI(
"https://esri.jfrog.io/artifactory/arcgis"
)
}
maven {
url = java.net.URI(
"https://olympus.esri.com/artifactory/arcgisruntime-repo/"
)
}
}
versionCatalogs {
create("arcgis") {
val versionAndBuild = if (sdkBuildNumber.isNotEmpty()) {
"$sdkVersionNumber-$sdkBuildNumber"
} else {
sdkVersionNumber
}
version("mapsSdk", "$versionAndBuild")
library("mapsSdk", "com.esri", "arcgis-maps-kotlin").versionRef("mapsSdk")
}
}
}
var includedProjects = projects.flatMap { listOf(":$it", ":$it-app") }.toTypedArray()
include(*includedProjects)
include(":bom")
include(":composable-map")
include(":indoors")
include(":floor-filter-app")
projects.forEach {
project(":$it").projectDir = File(rootDir, "toolkit/$it")
project(":$it-app").projectDir = File(rootDir, "microapps/${it.capitalized()}App/app")
}
project(":bom").projectDir = File(rootDir, "bom")
project(":composable-map").projectDir = File(rootDir, "toolkit/composable-map")
project(":indoors").projectDir = File(rootDir, "toolkit/indoors")
project(":floor-filter-app").projectDir = File(rootDir, "microapps/FloorFilterApp/app")