Skip to content

Commit 84e4244

Browse files
committed
Use source 1.7 until eclipse supports JDK 8
Specifically set the source level in generated eclipse projects to 1.7 rather than 1.8. Allows the current eclipse milestone (4.3 M6) in combination with JDK 8.0 to be used for Spring 4.0 development.
1 parent 59e6298 commit 84e4244

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gradle/ide.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ import org.gradle.plugins.ide.eclipse.model.SourceFolder
55
apply plugin: "propdeps-eclipse"
66
apply plugin: "propdeps-idea"
77

8+
// Until eclipse fully supports Java 8 use 1.7 source level
9+
eclipse.jdt {
10+
sourceCompatibility = 1.7
11+
targetCompatibility = 1.7
12+
}
13+
814
// Replace classpath entries with project dependencies (GRADLE-1116)
915
eclipse.classpath.file.whenMerged { classpath ->
1016
def regexp = /.*?\/([^\/]+)\/build\/[^\/]+\/(?:main|test)/ // only match those that end in main or test (avoids removing necessary entries like build/classes/jaxb)

0 commit comments

Comments
 (0)