SEC-2927: No Dependency Management for Bom
This commit is contained in:
@@ -70,14 +70,17 @@ def customizePom(pom, gradleProject) {
|
||||
email = 'rwinch@gopivotal.com'
|
||||
}
|
||||
}
|
||||
dependencyManagement {
|
||||
dependencies {
|
||||
dependency {
|
||||
groupId 'org.springframework'
|
||||
artifactId 'spring-framework-bom'
|
||||
version project.springVersion
|
||||
type 'pom'
|
||||
scope 'import'
|
||||
|
||||
if(!gradleProject.name.endsWith('-bom')) {
|
||||
dependencyManagement {
|
||||
dependencies {
|
||||
dependency {
|
||||
groupId 'org.springframework'
|
||||
artifactId 'spring-framework-bom'
|
||||
version project.springVersion
|
||||
type 'pom'
|
||||
scope 'import'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user