mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Add additional gradle hints for eclipse
Fixes gh-16
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user