瀏覽代碼

Fix gradle build file to declare proper version of Java

Greg Turnquist 9 年之前
父節點
當前提交
4feb3e8455
共有 2 個檔案被更改,包括 6 行新增0 行删除
  1. 3
    0
      complete/build.gradle
  2. 3
    0
      initial/build.gradle

+ 3
- 0
complete/build.gradle 查看文件

@@ -21,6 +21,9 @@ repositories {
21 21
     mavenCentral()
22 22
 }
23 23
 
24
+sourceCompatibility = 1.7
25
+targetCompatibility = 1.7
26
+
24 27
 dependencies {
25 28
     compile("org.springframework.boot:spring-boot-starter-web")
26 29
     testCompile("junit:junit")

+ 3
- 0
initial/build.gradle 查看文件

@@ -21,6 +21,9 @@ repositories {
21 21
     mavenCentral()
22 22
 }
23 23
 
24
+sourceCompatibility = 1.7
25
+targetCompatibility = 1.7
26
+
24 27
 dependencies {
25 28
     compile("org.springframework.boot:spring-boot-starter-web")
26 29
     testCompile("junit:junit")