Skip to content

Commit 688adef

Browse files
author
Nigel.Zheng
committed
chore: use gradle native dependency management platform instead of spring dependencyManagement plugin
1 parent fd71463 commit 688adef

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

build.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id "org.sonarqube" version "3.2.0"
3-
id "io.spring.dependency-management" version "1.0.11.RELEASE"
43
id "io.freefair.lombok" version "5.3.3.3"
54
id 'java'
65
id 'jacoco'
@@ -28,14 +27,10 @@ repositories {
2827
mavenCentral()
2928
}
3029

31-
dependencyManagement {
32-
imports {
33-
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
34-
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
35-
}
36-
}
37-
3830
dependencies {
31+
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
32+
implementation platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}")
33+
3934
implementation "org.springframework.security.oauth:spring-security-oauth2:2.5.1.RELEASE"
4035
implementation "org.springframework.boot:spring-boot-starter-test"
4136
implementation "org.springframework.security:spring-security-test"

0 commit comments

Comments
 (0)