Use web-starter for CLI MVC compiler auto-config

pull/50/head
Phillip Webb 11 years ago
parent 6a227a2298
commit 1d4f86452f

@ -40,15 +40,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio
public void applyDependencies(DependencyCustomizer dependencies) { public void applyDependencies(DependencyCustomizer dependencies) {
dependencies dependencies
.ifAnyMissingClasses("org.springframework.web.servlet.mvc.Controller") .ifAnyMissingClasses("org.springframework.web.servlet.mvc.Controller")
.add("org.springframework", "spring-webmvc", .add("org.springframework.boot", "spring-boot-starter-web",
dependencies.getProperty("spring.version")); dependencies.getProperty("spring.boot.version"));
dependencies
.ifAnyMissingClasses("org.apache.catalina.startup.Tomcat")
.add("org.apache.tomcat.embed", "tomcat-embed-core",
dependencies.getProperty("tomcat.version"))
.add("org.apache.tomcat.embed", "tomcat-embed-logging-juli",
dependencies.getProperty("tomcat.version"));
dependencies.add("org.codehaus.groovy", "groovy-templates", dependencies.add("org.codehaus.groovy", "groovy-templates",
dependencies.getProperty("groovy.version")); dependencies.getProperty("groovy.version"));

Loading…
Cancel
Save