-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.gradle.kts
44 lines (34 loc) · 1.45 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
/*
* Copyright 2023-2024 Broadcom. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import java.io.FileInputStream
import java.util.*
pluginManagement {
includeBuild("build-tools/gemfire-server-integration-test-plugin")
includeBuild("build-tools/publishing")
includeBuild("build-tools/convention-plugins")
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
val properties = Properties()
properties.load(FileInputStream("gradle.properties"))
versionOverrideFromProperties(this, properties)
}
}
}
private fun versionOverrideFromProperty(versionCatalogBuilder: VersionCatalogBuilder, propertyName: String, propertiesFile: Properties): String {
val propertyValue = providers.systemProperty(propertyName).getOrElse(propertiesFile.getProperty(propertyName))
return versionCatalogBuilder.version(propertyName, propertyValue)
}
private fun versionOverrideFromProperties(versionCatalogBuilder: VersionCatalogBuilder, properties: Properties) {
versionOverrideFromProperty(versionCatalogBuilder, "gemfireVersion", properties)
versionOverrideFromProperty(versionCatalogBuilder, "springDataGemFireVersion", properties)
}
rootProject.name = "spring-session-gemfire"
include("spring-session-data-gemfire")
project(":spring-session-data-gemfire").name = "spring-session-data-gemfire"