Skip to content

Commit 365cb6f

Browse files
author
Mark Perry
committed
Set source compatibility 1.7 for default and 1.8 for each module that overrides the default
1 parent 3d4e0f8 commit 365cb6f

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ subprojects {
7171
apply plugin: "maven"
7272
apply plugin: "java"
7373

74+
sourceCompatibility = "1.7"
75+
7476
if (doSigning()) {
7577
apply plugin: "signing"
7678
signing {

core/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies {
99
testCompile dependencyJunit
1010
}
1111

12+
sourceCompatibility = "1.8"
1213

1314
retrolambda {
1415
jdk System.getenv("JAVA8_HOME")

demo/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apply plugin: 'retrolambda'
44

55
mainClassName = "fj.demo.euler.Problem2"
66

7+
sourceCompatibility = "1.8"
78

89
retrolambda {
910
jdk System.getenv("JAVA8_HOME")

java8/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ jar {
33
baseName "${project.projectName}-${project.name}"
44
}
55

6+
sourceCompatibility = "1.8"
67

78
dependencies {
89
compile project(":core")

0 commit comments

Comments
 (0)