-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.gradle.kts
89 lines (75 loc) · 3.38 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
/*
* Copyright 2024 Broadcom. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import java.io.FileInputStream
import java.util.*
pluginManagement {
includeBuild("build-tools/publishing")
includeBuild("build-tools/convention-plugins")
}
rootProject.name = "spring-boot-data-gemfire"
include("spring-gemfire")
include("spring-gemfire-autoconfigure")
include("spring-gemfire-extensions")
include("spring-gemfire-starter")
include("spring-gemfire-actuator")
include("spring-gemfire-actuator-autoconfigure")
include("spring-gemfire-starter-logging")
include("spring-gemfire-starter-session")
include("spring-gemfire-starter-actuator")
include("spring-gemfire-starter-test")
include("spring-gemfire-samples")
include("spring-gemfire-samples:boot:actuator")
include("spring-gemfire-samples:boot:configuration")
include("spring-gemfire-samples:boot:security")
include("spring-gemfire-samples:caching:http-session")
include("spring-gemfire-samples:caching:inline")
include("spring-gemfire-samples:caching:inline-async")
include("spring-gemfire-samples:caching:look-aside")
include("spring-gemfire-samples:caching:multi-site")
include("spring-gemfire-samples:caching:near")
include("spring-gemfire-samples:intro:getting-started")
include("spring-gemfire-samples:intro:quick-start")
//
include("spring-geode-tests:smoke-tests:function-execution-on-region")
include("spring-geode-tests:smoke-tests:locator-application")
include("spring-geode-tests:smoke-tests:logging")
include("spring-geode-tests:smoke-tests:mock-session-caching")
include("spring-geode-tests:smoke-tests:multi-store")
project(":spring-gemfire").name = "spring-gemfire"
project(":spring-gemfire-autoconfigure").name = "spring-gemfire-autoconfigure"
project(":spring-gemfire-extensions").name = "spring-gemfire-extensions"
project(":spring-gemfire-starter").name = "spring-gemfire-starter"
project(":spring-gemfire-actuator").name = "spring-gemfire-actuator"
project(":spring-gemfire-actuator-autoconfigure").name = "spring-gemfire-actuator-autoconfigure"
project(":spring-gemfire-starter-logging").name = "spring-gemfire-starter-logging"
project(":spring-gemfire-starter-session").name = "spring-gemfire-starter-session"
project(":spring-gemfire-starter-actuator").name = "spring-gemfire-starter-actuator"
project(":spring-gemfire-starter-test").name = "spring-gemfire-starter-test"
dependencyResolutionManagement {
versionCatalogs {
val projectRootPath = layout.rootDirectory.asFile.toPath()
create("libs") {
val properties = Properties()
properties.load(FileInputStream("gradle.properties"))
versionOverrideFromProperties(this, properties)
}
create("bom") {
from(files("gradle/bom.versions.toml"))
}
}
}
fun versionOverrideFromProperty(
versionCatalogBuilder: VersionCatalogBuilder,
propertyName: String,
propertiesFile: Properties
): String {
val propertyValue = providers.systemProperty(propertyName).getOrElse(propertiesFile.getProperty(propertyName))
return versionCatalogBuilder.version(propertyName, propertyValue)
}
fun versionOverrideFromProperties(versionCatalogBuilder: VersionCatalogBuilder, properties: Properties) {
versionOverrideFromProperty(versionCatalogBuilder, "gemfireVersion", properties)
versionOverrideFromProperty(versionCatalogBuilder, "springDataGemFireVersion", properties)
versionOverrideFromProperty(versionCatalogBuilder, "springSessionDataGemFireVersion", properties)
}