Skip to content

Commit 2c98226

Browse files
committed
Use platform dependencies instead of the dependency management plugin
Closes gh-42712
1 parent f163aa3 commit 2c98226

File tree

5 files changed

+5
-10
lines changed
  • spring-boot-tests/spring-boot-integration-tests
    • spring-boot-launch-script-tests/spring-boot-launch-script-tests-app
    • spring-boot-loader-classic-tests/spring-boot-loader-classic-tests-app
    • spring-boot-loader-tests
    • spring-boot-server-tests/spring-boot-server-tests-app

5 files changed

+5
-10
lines changed

spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/spring-boot-launch-script-tests-app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ plugins {
33
id "org.springframework.boot"
44
}
55

6-
apply plugin: "io.spring.dependency-management"
7-
86
repositories {
97
maven { url "file:${rootDir}/../docker-test-maven-repository"}
108
mavenCentral()
119
spring.mavenRepositories()
1210
}
1311

1412
dependencies {
13+
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
1514
implementation("org.apache.tomcat.embed:tomcat-embed-core")
1615
}
1716

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-classic-tests/spring-boot-loader-classic-tests-app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ plugins {
33
id "org.springframework.boot"
44
}
55

6-
apply plugin: "io.spring.dependency-management"
7-
86
repositories {
97
maven { url "file:${rootDir}/../docker-test-maven-repository"}
108
mavenCentral()
119
spring.mavenRepositories()
1210
}
1311

1412
dependencies {
13+
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
1514
implementation("org.springframework.boot:spring-boot-starter-web")
1615
implementation("org.webjars:jquery:3.5.0")
1716
}

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/spring-boot-loader-tests-app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ plugins {
33
id "org.springframework.boot"
44
}
55

6-
apply plugin: "io.spring.dependency-management"
7-
86
repositories {
97
maven { url "file:${rootDir}/../docker-test-maven-repository"}
108
mavenCentral()
119
spring.mavenRepositories()
1210
}
1311

1412
dependencies {
13+
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
1514
implementation("org.springframework.boot:spring-boot-starter-web")
1615
implementation("org.webjars:jquery:3.5.0")
1716
}

spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/spring-boot-loader-tests-signed-jar/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ plugins {
55
id "org.springframework.boot"
66
}
77

8-
apply plugin: "io.spring.dependency-management"
9-
108
repositories {
119
maven { url "file:${rootDir}/../docker-test-maven-repository"}
1210
mavenCentral()
1311
spring.mavenRepositories()
1412
}
1513

1614
dependencies {
15+
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
1716
implementation("org.springframework.boot:spring-boot-starter")
1817
implementation("org.bouncycastle:bcprov-jdk18on:1.78.1")
1918
}

spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/spring-boot-server-tests-app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ plugins {
77
id "war"
88
}
99

10-
apply plugin: "io.spring.dependency-management"
11-
1210
repositories {
1311
maven { url "file:${rootDir}/../test-repository"}
1412
mavenCentral()
@@ -50,6 +48,7 @@ dependencies {
5048
compileOnly("org.eclipse.jetty.ee10:jetty-ee10-servlet")
5149
compileOnly("org.springframework:spring-web")
5250

51+
implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
5352
implementation("org.springframework.boot:spring-boot-starter")
5453

5554
app(files(resourcesJar))

0 commit comments

Comments
 (0)