-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
33 lines (29 loc) · 973 Bytes
/
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
pluginManagement {
repositories {
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
gradlePluginPortal()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.springframework.boot") {
useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
}
}
}
}
gradle.beforeProject {
loadLocalProperties()
}
fun Project.loadLocalProperties() {
val localPropertiesFile = rootDir.resolve("local.properties")
if (localPropertiesFile.exists()) {
val localProperties = java.util.Properties()
localProperties.load(localPropertiesFile.inputStream())
localProperties.forEach { (k, v) -> if (k is String) project.extra.set(k, v) }
}
}
rootProject.name = "vault-config-poc"