diff --git a/gradle-baseline-java/build.gradle b/gradle-baseline-java/build.gradle index e26a064ab..11f1731ec 100644 --- a/gradle-baseline-java/build.gradle +++ b/gradle-baseline-java/build.gradle @@ -14,6 +14,7 @@ dependencies { compile 'com.google.guava:guava:18.0' testCompile 'com.netflix.nebula:nebula-test:4.0.0' + testCompile 'org.apache.commons:commons-io:1.3.2' testCompile 'junit:junit:4.11' testCompile 'net.lingala.zip4j:zip4j:1.3.2' testCompile 'org.hamcrest:hamcrest-all:1.3' diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineEclipse.groovy b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineEclipse.groovy index ce3c63d30..91418779e 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineEclipse.groovy +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineEclipse.groovy @@ -120,9 +120,10 @@ class BaselineEclipse extends AbstractBaselinePlugin { // Override default Eclipse JRE. if (project.plugins.hasPlugin(JavaPlugin)) { project.tasks.eclipseClasspath.doFirst { + String eclipseClassPath = "org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-" + project.sourceCompatibility; project.eclipse.classpath { containers.clear() - containers.add("org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-${project.sourceCompatibility}") + containers.add(eclipseClassPath) } } }