Skip to content

Commit c33ec50

Browse files
author
Nigel.Zheng
committed
chore: upgrade spring boot to 2.4.5, spring cloud to 2020.0.2, apply lombok and dependency-management gradle plugin
1 parent d154528 commit c33ec50

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ or
102102
## TODOs
103103

104104
- Add support for `RestTemplate`
105+
- Add unit test

build.gradle

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
1-
buildscript {
2-
ext {
3-
springBootVersion = '2.0.1.RELEASE'
4-
}
1+
plugins {
2+
id "org.sonarqube" version "3.2.0"
3+
id "io.spring.dependency-management" version "1.0.11.RELEASE"
4+
id "io.freefair.lombok" version "5.3.3.3"
5+
id 'java'
6+
id 'jacoco'
57
}
68

7-
plugins {
8-
id "org.sonarqube" version "2.6.2"
9+
ext {
10+
set('springCloudVersion', "2020.0.2")
11+
set('springBootVersion', "2.4.5")
12+
set('springCloudStreamVersion', "3.1.2")
13+
set('springVersion', "5.4.1")
914
}
10-
apply plugin: 'java'
11-
apply plugin: "jacoco"
1215

1316
group 'com.github.ahunigel'
1417
version '2.0-SNAPSHOT'
1518

1619
sourceCompatibility = 1.8
1720

18-
dependencies {
19-
implementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
20-
implementation "org.springframework.security.oauth:spring-security-oauth2:2.2.1.RELEASE"
21-
implementation "org.springframework.security:spring-security-test:5.0.6.RELEASE"
22-
implementation group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
23-
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
24-
}
25-
2621
repositories {
2722
maven {
2823
url 'https://repo.spring.io/libs-milestone'
@@ -32,3 +27,21 @@ repositories {
3227
maven { url "http://repo.spring.io/release" }
3328
mavenCentral()
3429
}
30+
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+
38+
dependencies {
39+
implementation "org.springframework.security.oauth:spring-security-oauth2:2.5.1.RELEASE"
40+
implementation "org.springframework.boot:spring-boot-starter-test"
41+
implementation "org.springframework.security:spring-security-test"
42+
implementation group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
43+
44+
implementation group: 'junit', name: 'junit'
45+
46+
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
47+
}

lombok.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file is generated by the 'io.freefair.lombok' Gradle plugin
2+
config.stopBubbling = true
3+
lombok.addLombokGeneratedAnnotation = true
4+
lombok.extern.findbugs.addSuppressFBWarnings = true

0 commit comments

Comments
 (0)