1
0
mirror of synced 2026-05-22 21:33:16 +00:00
Files
spring-security/settings.gradle
T

58 lines
1.5 KiB
Groovy
Raw Normal View History

2020-03-04 11:33:58 -06:00
pluginManagement {
repositories {
gradlePluginPortal()
}
}
plugins {
id "io.spring.develocity.conventions" version "0.0.25"
2020-03-04 11:33:58 -06:00
}
2021-04-04 23:22:06 -05:00
dependencyResolutionManagement {
repositories {
mavenCentral()
2026-01-10 22:19:11 -05:00
maven { url = "https://repo.spring.io/snapshot" }
2021-04-04 23:22:06 -05:00
}
}
2016-04-11 10:47:06 -04:00
rootProject.name = 'spring-security'
2017-03-28 15:45:30 -05:00
FileTree buildFiles = fileTree(rootDir) {
List excludes = gradle.startParameter.projectProperties.get("excludeProjects")?.split(",")
include '**/*.gradle', '**/*.gradle.kts'
2018-05-18 11:27:06 -05:00
exclude 'build', '**/gradle', 'settings.gradle', 'buildSrc', '/build.gradle', '.*', 'out'
2017-03-28 15:45:30 -05:00
exclude '**/grails3'
if(excludes) {
exclude excludes
}
2010-02-08 23:57:04 +00:00
}
2017-03-28 15:45:30 -05:00
String rootDirPath = rootDir.absolutePath + File.separator
buildFiles.each { File buildFile ->
2016-04-11 10:47:06 -04:00
2017-03-28 15:45:30 -05:00
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
boolean isKotlin = buildFile.name.endsWith(".kts")
2017-03-28 15:45:30 -05:00
if(isDefaultName) {
String buildFilePath = buildFile.parentFile.absolutePath
2025-01-30 14:51:40 -05:00
String projectName = buildFilePath.tokenize(File.separator)[-1]
configureProject(':' + projectName, projectName, buildFile)
2017-03-28 15:45:30 -05:00
} else {
String projectName
if (isKotlin) {
projectName = buildFile.name.replace('.gradle.kts', '')
} else {
projectName = buildFile.name.replace('.gradle', '')
}
2025-01-30 14:51:40 -05:00
configureProject(':' + projectName, projectName, buildFile)
2016-04-11 10:47:06 -04:00
}
}
2025-01-30 14:51:40 -05:00
def configureProject(String projectPath, String projectName, File buildFile) {
include(projectPath)
def project = findProject(projectPath)
project.name = projectName
project.projectDir = buildFile.parentFile
project.buildFileName = buildFile.name
}