| 
									
										
										
										
											2020-03-05 01:33:58 +08:00
										 |  |  | pluginManagement { | 
					
						
							|  |  |  | 	repositories { | 
					
						
							|  |  |  | 		gradlePluginPortal() | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | plugins { | 
					
						
							| 
									
										
										
										
											2025-07-24 12:03:03 +08:00
										 |  |  | 	id "io.spring.develocity.conventions" version "0.0.24" | 
					
						
							| 
									
										
										
										
											2020-03-05 01:33:58 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-05 12:22:06 +08:00
										 |  |  | dependencyResolutionManagement { | 
					
						
							|  |  |  | 	repositories { | 
					
						
							|  |  |  | 		mavenCentral() | 
					
						
							| 
									
										
										
										
											2023-07-15 08:38:34 +08:00
										 |  |  | 		maven { url "https://repo.spring.io/milestone" } | 
					
						
							| 
									
										
										
										
											2021-04-05 12:22:06 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2025-01-31 03:51:40 +08:00
										 |  |  | 		String projectName = buildFilePath.tokenize(File.separator)[-1] | 
					
						
							|  |  |  | 		configureProject(':' + projectName, projectName, buildFile) | 
					
						
							| 
									
										
										
										
											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', '') | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2025-01-31 03:51:40 +08:00
										 |  |  | 		configureProject(':' + projectName, projectName, buildFile) | 
					
						
							| 
									
										
										
										
											2016-04-11 22:47:06 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-01-31 03:51:40 +08: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 | 
					
						
							|  |  |  | } |