瀏覽代碼

Upgrade to Spring Boot 2.0.0.RELEASE

Greg Turnquist 6 年之前
父節點
當前提交
526de39fd0
沒有帳戶連結到提交者的電子郵件
共有 6 個檔案被更改,包括 10 行新增8 行删除
  1. 1
    1
      README.adoc
  2. 2
    1
      complete/build.gradle
  3. 1
    1
      complete/pom.xml
  4. 3
    3
      complete/src/test/java/hello/HelloControllerIT.java
  5. 2
    1
      initial/build.gradle
  6. 1
    1
      initial/pom.xml

+ 1
- 1
README.adoc 查看文件

2
 tags: [spring-boot, groovy, test]
2
 tags: [spring-boot, groovy, test]
3
 projects: [spring-boot]
3
 projects: [spring-boot]
4
 ---
4
 ---
5
-:spring_boot_version: 1.5.10.RELEASE
5
+:spring_boot_version: 2.0.0.RELEASE
6
 :spring-boot: https://github.com/spring-projects/spring-boot
6
 :spring-boot: https://github.com/spring-projects/spring-boot
7
 :toc:
7
 :toc:
8
 :icons: font
8
 :icons: font

+ 2
- 1
complete/build.gradle 查看文件

3
         mavenCentral()
3
         mavenCentral()
4
     }
4
     }
5
     dependencies {
5
     dependencies {
6
-        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
6
+        classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE")
7
     }
7
     }
8
 }
8
 }
9
 
9
 
11
 apply plugin: 'eclipse'
11
 apply plugin: 'eclipse'
12
 apply plugin: 'idea'
12
 apply plugin: 'idea'
13
 apply plugin: 'org.springframework.boot'
13
 apply plugin: 'org.springframework.boot'
14
+apply plugin: 'io.spring.dependency-management'
14
 
15
 
15
 jar {
16
 jar {
16
     baseName = 'gs-spring-boot'
17
     baseName = 'gs-spring-boot'

+ 1
- 1
complete/pom.xml 查看文件

10
     <parent>
10
     <parent>
11
         <groupId>org.springframework.boot</groupId>
11
         <groupId>org.springframework.boot</groupId>
12
         <artifactId>spring-boot-starter-parent</artifactId>
12
         <artifactId>spring-boot-starter-parent</artifactId>
13
-        <version>1.5.10.RELEASE</version>
13
+        <version>2.0.0.RELEASE</version>
14
     </parent>
14
     </parent>
15
 
15
 
16
     <dependencies>
16
     <dependencies>

+ 3
- 3
complete/src/test/java/hello/HelloControllerIT.java 查看文件

1
 package hello;
1
 package hello;
2
 
2
 
3
-import static org.hamcrest.Matchers.equalTo;
4
-import static org.junit.Assert.assertThat;
3
+import static org.hamcrest.Matchers.*;
4
+import static org.junit.Assert.*;
5
 
5
 
6
 import java.net.URL;
6
 import java.net.URL;
7
 
7
 
9
 import org.junit.Test;
9
 import org.junit.Test;
10
 import org.junit.runner.RunWith;
10
 import org.junit.runner.RunWith;
11
 import org.springframework.beans.factory.annotation.Autowired;
11
 import org.springframework.beans.factory.annotation.Autowired;
12
-import org.springframework.boot.context.embedded.LocalServerPort;
13
 import org.springframework.boot.test.context.SpringBootTest;
12
 import org.springframework.boot.test.context.SpringBootTest;
14
 import org.springframework.boot.test.web.client.TestRestTemplate;
13
 import org.springframework.boot.test.web.client.TestRestTemplate;
14
+import org.springframework.boot.web.server.LocalServerPort;
15
 import org.springframework.http.ResponseEntity;
15
 import org.springframework.http.ResponseEntity;
16
 import org.springframework.test.context.junit4.SpringRunner;
16
 import org.springframework.test.context.junit4.SpringRunner;
17
 
17
 

+ 2
- 1
initial/build.gradle 查看文件

3
         mavenCentral()
3
         mavenCentral()
4
     }
4
     }
5
     dependencies {
5
     dependencies {
6
-        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
6
+        classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE")
7
     }
7
     }
8
 }
8
 }
9
 
9
 
11
 apply plugin: 'eclipse'
11
 apply plugin: 'eclipse'
12
 apply plugin: 'idea'
12
 apply plugin: 'idea'
13
 apply plugin: 'org.springframework.boot'
13
 apply plugin: 'org.springframework.boot'
14
+apply plugin: 'io.spring.dependency-management'
14
 
15
 
15
 jar {
16
 jar {
16
     baseName = 'gs-spring-boot'
17
     baseName = 'gs-spring-boot'

+ 1
- 1
initial/pom.xml 查看文件

10
     <parent>
10
     <parent>
11
         <groupId>org.springframework.boot</groupId>
11
         <groupId>org.springframework.boot</groupId>
12
         <artifactId>spring-boot-starter-parent</artifactId>
12
         <artifactId>spring-boot-starter-parent</artifactId>
13
-        <version>1.5.10.RELEASE</version>
13
+        <version>2.0.0.RELEASE</version>
14
     </parent>
14
     </parent>
15
 
15
 
16
     <dependencies>
16
     <dependencies>