Sfoglia il codice sorgente

Upgrade to Spring Boot 2.0.0.RELEASE

Greg Turnquist 6 anni fa
parent
commit
526de39fd0
No account linked to committer's email

+ 1
- 1
README.adoc Vedi File

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

+ 2
- 1
complete/build.gradle Vedi File

@@ -3,7 +3,7 @@ buildscript {
3 3
         mavenCentral()
4 4
     }
5 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,6 +11,7 @@ apply plugin: 'java'
11 11
 apply plugin: 'eclipse'
12 12
 apply plugin: 'idea'
13 13
 apply plugin: 'org.springframework.boot'
14
+apply plugin: 'io.spring.dependency-management'
14 15
 
15 16
 jar {
16 17
     baseName = 'gs-spring-boot'

+ 1
- 1
complete/pom.xml Vedi File

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

+ 3
- 3
complete/src/test/java/hello/HelloControllerIT.java Vedi File

@@ -1,7 +1,7 @@
1 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 6
 import java.net.URL;
7 7
 
@@ -9,9 +9,9 @@ import org.junit.Before;
9 9
 import org.junit.Test;
10 10
 import org.junit.runner.RunWith;
11 11
 import org.springframework.beans.factory.annotation.Autowired;
12
-import org.springframework.boot.context.embedded.LocalServerPort;
13 12
 import org.springframework.boot.test.context.SpringBootTest;
14 13
 import org.springframework.boot.test.web.client.TestRestTemplate;
14
+import org.springframework.boot.web.server.LocalServerPort;
15 15
 import org.springframework.http.ResponseEntity;
16 16
 import org.springframework.test.context.junit4.SpringRunner;
17 17
 

+ 2
- 1
initial/build.gradle Vedi File

@@ -3,7 +3,7 @@ buildscript {
3 3
         mavenCentral()
4 4
     }
5 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,6 +11,7 @@ apply plugin: 'java'
11 11
 apply plugin: 'eclipse'
12 12
 apply plugin: 'idea'
13 13
 apply plugin: 'org.springframework.boot'
14
+apply plugin: 'io.spring.dependency-management'
14 15
 
15 16
 jar {
16 17
     baseName = 'gs-spring-boot'

+ 1
- 1
initial/pom.xml Vedi File

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