Sfoglia il codice sorgente

Remove spring-framework-bom Manual Insertion

spring-io-plugin can do this now

Issue gh-8271
Josh Cummings 5 anni fa
parent
commit
ecac6cdfc1
2 ha cambiato i file con 3 aggiunte e 13 eliminazioni
  1. 3 0
      build.gradle
  2. 0 13
      gradle/maven-deployment.gradle

+ 3 - 0
build.gradle

@@ -122,6 +122,9 @@ configure(coreModuleProjects) {
 	}
 
 	dependencyManagement {
+		imports {
+			mavenBom("org.springframework:spring-framework-bom:${springVersion}")
+		}
 		springIoTestRuntime {
 			imports {
 				mavenBom("io.spring.platform:platform-bom:${springIoVersion}") {

+ 0 - 13
gradle/maven-deployment.gradle

@@ -77,19 +77,6 @@ def customizePom(pom, gradleProject) {
 			}
 		}
 		// Exclude spring-framework-bom for sample Boot projects since spring-boot-starter-parent imports spring-framework-bom
-		if(!gradleProject.name.endsWith('-bom') && !sampleBootProjects.contains(gradleProject)) {
-			dependencyManagement {
-				dependencies {
-					dependency {
-						groupId 'org.springframework'
-						artifactId 'spring-framework-bom'
-						version project.springVersion
-						type 'pom'
-						scope 'import'
-					}
-				}
-			}
-		}
 		if(isWar) {
 			properties {
 				'm2eclipse.wtp.contextRoot' '/' + project.war.baseName