Skip to content

Commit b38e6fa

Browse files
committed
code refactoring
1 parent 8654c26 commit b38e6fa

4 files changed

Lines changed: 23 additions & 21 deletions

File tree

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "interactive"
3+
}

build.gradle

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,36 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE'
6+
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.22.RELEASE"
77
}
88
}
99

1010
apply plugin: 'java'
1111
apply plugin: 'groovy'
1212
apply plugin: 'org.springframework.boot'
13+
apply plugin: 'io.spring.dependency-management'
1314

1415
repositories {
15-
mavenCentral()
16+
mavenCentral()
17+
}
18+
19+
java {
20+
sourceCompatibility = JavaVersion.VERSION_1_8
21+
targetCompatibility = JavaVersion.VERSION_1_8
1622
}
1723

18-
sourceCompatibility = 1.8
19-
targetCompatibility = 1.8
2024

2125
dependencies {
22-
compile(
23-
"org.springframework.boot:spring-boot-starter-web",
24-
"org.springframework.boot:spring-boot-devtools"
25-
)
26-
testCompile(
27-
"org.springframework.boot:spring-boot-starter-test",
28-
"org.spockframework:spock-spring:1.0-groovy-2.4"
29-
)
30-
}
26+
implementation 'org.springframework.boot:spring-boot-starter-web:1.5.22.RELEASE'
27+
implementation 'org.springframework.boot:spring-boot-starter-groovy-templates:1.5.22.RELEASE'
28+
implementation 'org.springframework.boot:spring-boot-devtools:1.5.22.RELEASE'
3129

32-
tasks.withType(Test) {
33-
testLogging {
34-
exceptionFormat = 'full'
35-
events 'passed', 'skipped', 'failed'
36-
}
30+
testImplementation 'org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE'
31+
testImplementation 'org.spockframework:spock-core:1.1-groovy-2.4'
32+
testImplementation 'org.spockframework:spock-spring:1.1-groovy-2.4'
3733
}
3834

39-
task wrapper(type: Wrapper) {
40-
gradleVersion = '3.5'
35+
jar {
36+
enabled = false
4137
}
38+

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.gradle.java.home=/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home
2+

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip

0 commit comments

Comments
 (0)