浏览代码

Upgrade to Java 8

Greg Turnquist 11 年前
父节点
当前提交
219e59715d
共有 5 个文件被更改,包括 7 次插入7 次删除
  1. 1
    1
      README.adoc
  2. 2
    2
      complete/build.gradle
  3. 1
    1
      complete/pom.xml
  4. 2
    2
      initial/build.gradle
  5. 1
    1
      initial/pom.xml

+ 1
- 1
README.adoc 查看文件

18
 
18
 
19
 == What you'll need
19
 == What you'll need
20
 
20
 
21
-:java_version: 1.7
21
+:java_version: 1.8
22
 include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/prereq_editor_jdk_buildtools.adoc[]
22
 include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/prereq_editor_jdk_buildtools.adoc[]
23
 
23
 
24
 include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/how_to_complete_this_guide.adoc[]
24
 include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/how_to_complete_this_guide.adoc[]

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

21
     mavenCentral()
21
     mavenCentral()
22
 }
22
 }
23
 
23
 
24
-sourceCompatibility = 1.7
25
-targetCompatibility = 1.7
24
+sourceCompatibility = 1.8
25
+targetCompatibility = 1.8
26
 
26
 
27
 dependencies {
27
 dependencies {
28
     compile("org.springframework.boot:spring-boot-starter-web")
28
     compile("org.springframework.boot:spring-boot-starter-web")

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

34
     </dependencies>
34
     </dependencies>
35
 
35
 
36
     <properties>
36
     <properties>
37
-        <java.version>1.7</java.version>
37
+        <java.version>1.8</java.version>
38
     </properties>
38
     </properties>
39
 
39
 
40
     <build>
40
     <build>

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

21
     mavenCentral()
21
     mavenCentral()
22
 }
22
 }
23
 
23
 
24
-sourceCompatibility = 1.7
25
-targetCompatibility = 1.7
24
+sourceCompatibility = 1.8
25
+targetCompatibility = 1.8
26
 
26
 
27
 dependencies {
27
 dependencies {
28
     // tag::jetty[]
28
     // tag::jetty[]

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

21
     </dependencies>
21
     </dependencies>
22
 
22
 
23
     <properties>
23
     <properties>
24
-        <java.version>1.7</java.version>
24
+        <java.version>1.8</java.version>
25
     </properties>
25
     </properties>
26
 
26
 
27
 
27