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