This commit is contained in:
Phillip Webb
2014-05-30 00:31:11 +01:00
parent 48c1228253
commit 11a093bdc0
8 changed files with 32 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,8 +28,7 @@ import org.springframework.boot.groovy.GroovyTemplate;
* {@link CompilerAutoConfiguration} for Groovy Templates (outside MVC).
*
* @author Dave Syer
*
* @since 1.1
* @since 1.1.0
*/
public class GroovyTemplatesCompilerAutoConfiguration extends CompilerAutoConfiguration {
@@ -40,9 +39,8 @@ public class GroovyTemplatesCompilerAutoConfiguration extends CompilerAutoConfig
@Override
public void applyDependencies(DependencyCustomizer dependencies) {
dependencies
.ifAnyMissingClasses("groovy.text.TemplateEngine")
.add("groovy-templates");
dependencies.ifAnyMissingClasses("groovy.text.TemplateEngine").add(
"groovy-templates");
}
@Override

View File

@@ -22,8 +22,13 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.cli.compiler.autoconfigure.GroovyTemplatesCompilerAutoConfiguration;
/**
* Pseudo annotation used to trigger {@link GroovyTemplatesAutoConfiguration}.
* Pseudo annotation used to trigger {@link GroovyTemplatesCompilerAutoConfiguration}.
*
* @author Dave Syer
* @since 1.1.0
*/
@Target(ElementType.TYPE)
@Documented