-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.gradle.kts
157 lines (148 loc) · 6.99 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/*
*
* 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.
*
*/
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
// For finalBuilds ignore the build number and pick up the released version of the SDK dependency
val finalBuild: Boolean = (providers.gradleProperty("finalBuild").orNull ?: "false")
.run { this == "true" }
// The version of the ArcGIS Maps SDK for Kotlin dependency.
// First look for the version number provided via command line (for CI builds), if not found,
// take the one defined in gradle.properties.
// CI builds pass -PversionNumber=${BUILDVER}
val sdkVersionNumber: String =
providers.gradleProperty("versionNumber").orNull
?: providers.gradleProperty("sdkVersionNumber").orNull
?: throw IllegalStateException("sdkVersionNumber must be set either via command line or in gradle.properties")
// The build number of the ArcGIS Maps SDK for Kotlin dependency.
// First look for the version number provided via command line (for CI builds), if not found,
// take the one defined in gradle.properties.
// CI builds pass -PbuildNumber=${BUILDNUM}
val sdkBuildNumber: String =
providers.gradleProperty("buildNumber").orNull
?: providers.gradleProperty("sdkBuildNumber").orNull
?: throw IllegalStateException("sdkBuildNumber must be set either via command line or in gradle.properties")
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 (finalBuild) {
logger.warn(
"Requested release candidate for the SDK dependency $sdkVersionNumber"
)
sdkVersionNumber
} else {
if (sdkBuildNumber.isBlank()) {
logger.warn("Maps SDK dependency: $sdkVersionNumber")
sdkVersionNumber
} else {
logger.warn("Maps SDK dependency: $sdkVersionNumber-$sdkBuildNumber")
"$sdkVersionNumber-$sdkBuildNumber"
}
}
version("mapsSdk", versionAndBuild)
library("mapsSdk", "com.esri", "arcgis-maps-kotlin").versionRef("mapsSdk")
}
}
}
// fixes https://devtopia.esri.com/runtime/kotlin/issues/3863#issuecomment-4715101
// fixes https://issuetracker.google.com/issues/315023802
gradle.startParameter.excludedTaskNames.addAll(listOf(":buildSrc:testClasses"))
include(":bom")
project(":bom").projectDir = File(rootDir, "bom")
include(":kdoc")
include(":microapps-lib")
project(":microapps-lib").projectDir = File(rootDir, "microapps/MicroappsLib")
include(":authentication-app")
project(":authentication-app").projectDir = File(rootDir, "microapps/AuthenticationApp/app")
include(":authentication")
project(":authentication").projectDir = File(rootDir, "toolkit/authentication")
include(":compass-app")
project(":compass-app").projectDir = File(rootDir, "microapps/CompassApp/app")
include(":compass")
project(":compass").projectDir = File(rootDir, "toolkit/compass")
include(":featureforms-app")
project(":featureforms-app").projectDir = File(rootDir, "microapps/FeatureFormsApp/app")
include(":featureforms")
project(":featureforms").projectDir = File(rootDir, "toolkit/featureforms")
include(":template-app")
project(":template-app").projectDir = File(rootDir, "microapps/TemplateApp/app")
include(":template")
project(":template").projectDir = File(rootDir, "toolkit/template")
include(":composable-map")
project(":composable-map").projectDir = File(rootDir, "toolkit/composable-map")
include(":indoors")
project(":indoors").projectDir = File(rootDir, "toolkit/indoors")
include(":floor-filter-app")
project(":floor-filter-app").projectDir = File(rootDir, "microapps/FloorFilterApp/app")
include(":geoview-compose")
project(":geoview-compose").projectDir = File(rootDir, "toolkit/geoview-compose")
include(":map-view-callout-app")
project(":map-view-callout-app").projectDir = File(rootDir, "microapps/MapViewCalloutApp/app")
include(":map-view-location-display-app")
project(":map-view-location-display-app").projectDir = File(rootDir, "microapps/mapviewlocationdisplayapp/app")
include(":map-view-insets-app")
project(":map-view-insets-app").projectDir = File(rootDir, "microapps/mapviewinsetsapp/app")
include(":map-view-geometry-editor-app")
project(":map-view-geometry-editor-app").projectDir = File(rootDir, "microapps/mapviewgeometryeditorapp/app")
include(":map-view-set-viewpoint-app")
project(":map-view-set-viewpoint-app").projectDir = File(rootDir, "microapps/mapviewsetviewpointapp/app")
include(":map-view-identify-app")
project(":map-view-identify-app").projectDir = File(rootDir, "microapps/mapviewidentifyapp/app")
include(":scene-view-callout-app")
project(":scene-view-callout-app").projectDir = File(rootDir, "microapps/SceneViewCalloutApp/app")
include(":scene-view-analysis-overlay-app")
project(":scene-view-analysis-overlay-app").projectDir = File(rootDir, "microapps/sceneviewanalysisoverlayapp/app")
include(":scene-view-set-viewpoint-app")
project(":scene-view-set-viewpoint-app").projectDir = File(rootDir, "microapps/sceneviewsetviewpointapp/app")
include(":scene-view-camera-controller-app")
project(":scene-view-camera-controller-app").projectDir = File(rootDir, "microapps/sceneviewcameracontrollerapp/app")
include(":scene-view-lighting-options-app")
project(":scene-view-lighting-options-app").projectDir = File(rootDir, "microapps/sceneviewlightingoptionsapp/app")
include(":popup")
project(":popup").projectDir = File(rootDir, "toolkit/popup")
include(":popup-app")
project(":popup-app").projectDir = File(rootDir, "microapps/PopupApp/app")
include(":utility-network-trace-app")
project(":utility-network-trace-app").projectDir = File(rootDir, "microapps/UtilityNetworkTraceApp/app")
include(":utilitynetworks")
project(":utilitynetworks").projectDir = File(rootDir, "toolkit/utilitynetworks")
include(":ar")
project(":ar").projectDir = File(rootDir, "toolkit/ar")
include(":ar-tabletop-app")
project(":ar-tabletop-app").projectDir = File(rootDir, "microapps/ArTabletopApp/app")