Add additional gradle hints for eclipse

Fixes gh-16
This commit is contained in:
Dave Syer
2014-06-05 08:20:47 +01:00
parent 4f772e4a99
commit 196fa8f2f0

View File

@@ -13,8 +13,9 @@ buildscript {
}
}
apply plugin: '${language}'
apply plugin: 'eclipse'
apply plugin: '${language}'<% if (packaging=='war') { %>
apply plugin: 'eclipse-wtp'<% } else { %>
apply plugin: 'eclipse'<% } %>
apply plugin: 'idea'
apply plugin: 'spring-boot' <% if (packaging=='war') { %>
apply plugin: 'war'
@@ -45,6 +46,13 @@ dependencies {<% styles.each { %>
testCompile("org.springframework.boot:spring-boot-starter-test")
}
eclipse {
classpath {
containers.remove(''org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-${javaVersion}'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}