2020-03-04 12:33:58 -05:00
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
2024-06-12 23:55:02 -04:00
|
|
|
id "com.gradle.develocity" version "3.17.5"
|
2024-04-25 23:59:02 -04:00
|
|
|
id "io.spring.ge.conventions" version "0.0.17"
|
2020-03-04 12:33:58 -05:00
|
|
|
}
|
|
|
|
|
2021-04-05 00:22:06 -04:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2023-07-14 20:38:34 -04:00
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
2021-04-05 00:22:06 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-11 10:47:06 -04:00
|
|
|
rootProject.name = 'spring-security'
|
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
FileTree buildFiles = fileTree(rootDir) {
|
|
|
|
List excludes = gradle.startParameter.projectProperties.get("excludeProjects")?.split(",")
|
2020-01-07 12:08:43 -05:00
|
|
|
include '**/*.gradle', '**/*.gradle.kts'
|
2018-05-18 12:27:06 -04:00
|
|
|
exclude 'build', '**/gradle', 'settings.gradle', 'buildSrc', '/build.gradle', '.*', 'out'
|
2017-03-28 16:45:30 -04:00
|
|
|
exclude '**/grails3'
|
|
|
|
if(excludes) {
|
|
|
|
exclude excludes
|
|
|
|
}
|
2010-02-08 18:57:04 -05:00
|
|
|
}
|
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
String rootDirPath = rootDir.absolutePath + File.separator
|
|
|
|
buildFiles.each { File buildFile ->
|
2016-04-11 10:47:06 -04:00
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
|
2020-01-07 12:08:43 -05:00
|
|
|
boolean isKotlin = buildFile.name.endsWith(".kts")
|
2017-03-28 16:45:30 -04:00
|
|
|
if(isDefaultName) {
|
|
|
|
String buildFilePath = buildFile.parentFile.absolutePath
|
2018-08-22 11:21:41 -04:00
|
|
|
String projectPath = buildFilePath.replace(rootDirPath, '').replace(File.separator, ':')
|
2016-04-11 10:47:06 -04:00
|
|
|
include projectPath
|
2017-03-28 16:45:30 -04:00
|
|
|
} else {
|
2020-01-07 12:08:43 -05:00
|
|
|
String projectName
|
|
|
|
if (isKotlin) {
|
|
|
|
projectName = buildFile.name.replace('.gradle.kts', '')
|
|
|
|
} else {
|
|
|
|
projectName = buildFile.name.replace('.gradle', '')
|
|
|
|
}
|
2017-03-28 16:45:30 -04:00
|
|
|
String projectPath = ':' + projectName;
|
|
|
|
include projectPath
|
|
|
|
def project = findProject("${projectPath}")
|
|
|
|
project.name = projectName
|
|
|
|
project.projectDir = buildFile.parentFile
|
|
|
|
project.buildFileName = buildFile.name
|
2016-04-11 10:47:06 -04:00
|
|
|
}
|
|
|
|
}
|