File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
buildSrc/src/main/java/org/springframework/boot/build
spring-boot-project/spring-boot-parent Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,11 @@ private void configureDependencyManagement(Project project) {
231
231
.matching ((configuration ) -> configuration .getName ().endsWith ("Classpath" )
232
232
|| JavaPlugin .ANNOTATION_PROCESSOR_CONFIGURATION_NAME .equals (configuration .getName ()))
233
233
.all ((configuration ) -> configuration .extendsFrom (dependencyManagement ));
234
- Dependency springBootParent = project .getDependencies ().enforcedPlatform (project .getDependencies ()
235
- .project (Collections .singletonMap ("path" , ":spring-boot-project:spring-boot-parent" )));
236
- dependencyManagement .getDependencies ().add (springBootParent );
234
+ String path = project .getName ().contains ("spring-boot-starter" )
235
+ ? ":spring-boot-project:spring-boot-dependencies" : ":spring-boot-project:spring-boot-parent" ;
236
+ Dependency dependency = project .getDependencies ()
237
+ .enforcedPlatform (project .getDependencies ().project (Collections .singletonMap ("path" , path )));
238
+ dependencyManagement .getDependencies ().add (dependency );
237
239
project .getPlugins ().withType (OptionalDependenciesPlugin .class , (optionalDependencies ) -> configurations
238
240
.getByName (OptionalDependenciesPlugin .OPTIONAL_CONFIGURATION_NAME ).extendsFrom (dependencyManagement ));
239
241
}
Original file line number Diff line number Diff line change @@ -164,6 +164,13 @@ bom {
164
164
]
165
165
}
166
166
}
167
+ library(" SnakeYAML" , " 1.31" ) {
168
+ group(" org.yaml" ) {
169
+ modules = [
170
+ " snakeyaml"
171
+ ]
172
+ }
173
+ }
167
174
library(" Spock Framework" , " 2.0-groovy-3.0" ) {
168
175
group(" org.spockframework" ) {
169
176
modules = [
You can’t perform that action at this time.
0 commit comments