Skip to content

Commit

Permalink
Use source 1.7 until eclipse supports JDK 8
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
philwebb committed May 6, 2013
1 parent 59e6298 commit 84e4244
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gradle/ide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import org.gradle.plugins.ide.eclipse.model.SourceFolder
apply plugin: "propdeps-eclipse"
apply plugin: "propdeps-idea"

// Until eclipse fully supports Java 8 use 1.7 source level
eclipse.jdt {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}

// Replace classpath entries with project dependencies (GRADLE-1116)
eclipse.classpath.file.whenMerged { classpath ->
def regexp = /.*?\/([^\/]+)\/build\/[^\/]+\/(?:main|test)/ // only match those that end in main or test (avoids removing necessary entries like build/classes/jaxb)
Expand Down

0 comments on commit 84e4244

Please sign in to comment.