Remove outdated references to Groovy

This commit is contained in:
Stephane Nicoll
2017-02-10 11:10:01 +01:00
parent fffcd8a774
commit 53679aa860
5 changed files with 12 additions and 13 deletions

View File

@@ -23,12 +23,12 @@ None of these is essential for a pull request, but they will all help. They can
added after the original pull request but before a merge. added after the original pull request but before a merge.
* Use the https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Code-Style[Spring Framework code format conventions]. * Use the https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Code-Style[Spring Framework code format conventions].
* Make sure all new `.groovy` files to have a simple Javadoc class comment with at least an * Make sure all new `.java` files to have a simple Javadoc class comment with at least an
`@author` tag identifying you, and preferably at least a paragraph on what the class is `@author` tag identifying you, and preferably at least a paragraph on what the class is
for. for.
* Add the ASF license header comment to all new `.groovy` files (copy from existing files * Add the ASF license header comment to all new `.java` files (copy from existing files
in the project) in the project)
* Add yourself as an `@author` to the .groovy files that you modify substantially (more * Add yourself as an `@author` to the .java files that you modify substantially (more
than cosmetic changes). than cosmetic changes).
* Add some Javadocs and, if you change the namespace, some XSD doc elements. * Add some Javadocs and, if you change the namespace, some XSD doc elements.
* A few unit tests would help a lot as well -- someone has to do it. * A few unit tests would help a lot as well -- someone has to do it.

View File

@@ -243,12 +243,11 @@ other Spring Boot app from the `initializr-service` directory:
[[run-ide]] [[run-ide]]
=== Running the app in an IDE === Running the app in an IDE
You should be able to import the projects into your IDE with no problems (STS with You should be able to import the projects into your IDE with no problems. Once there you
the m2e Groovy compiler support or IntelliJ IDEA definitely work). Once there you can can run the `initializr-service` from its main method, debug it, and it will reload if
run the `initializr-service` from its main method, debug it, and it will reload if you make changes to other modules. (You may need to manually enable the "full" profile.)
you make changes to other modules. (You may need to manually enable the "full" This is the recommended way to operate while you are developing the application,
profile.) This is the recommended way to operate while you are developing the especially the UI.
application, especially the UI.
## Deploying to Cloud Foundry ## Deploying to Cloud Foundry

View File

@@ -23,7 +23,7 @@ the list of available option for each setting and which one is the default.
## Env section ## Env section
TIP: Check {sc-initializr-generator}/metadata/InitializrConfiguration.groovy#L113[the code] TIP: Check {sc-initializr-generator}/metadata/InitializrConfiguration.java#L142[the code]
for a full list of the available configuration options. for a full list of the available configuration options.
The `env` element defines environment option that the service uses: The `env` element defines environment option that the service uses:
@@ -99,7 +99,7 @@ that dependency is added.
with the dependency. with the dependency.
* Links to resources such as a guide or a reference doc section. * Links to resources such as a guide or a reference doc section.
TIP: Check {sc-initializr-generator}/metadata/Dependency.groovy[the code] for a full TIP: Check {sc-initializr-generator}/metadata/Dependency.java[the code] for a full
list of the available configuration options. list of the available configuration options.
Here is the most basic dependency entry you could have Here is the most basic dependency entry you could have

View File

@@ -14,7 +14,7 @@ Stéphane Nicoll; Dave Syer
:github-code: https://github.com/{github-repo}/tree/{github-tag} :github-code: https://github.com/{github-repo}/tree/{github-tag}
:github-wiki: https://github.com/{github-repo}/wiki :github-wiki: https://github.com/{github-repo}/wiki
:github-master-code: https://github.com/{github-repo}/tree/master :github-master-code: https://github.com/{github-repo}/tree/master
:sc-initializr-generator: {github-code}/initializr-generator/src/main/groovy/io/spring/initializr :sc-initializr-generator: {github-code}/initializr-generator/src/main/java/io/spring/initializr
:sc-initializr-service: {github-code}/initializr-service/src/main :sc-initializr-service: {github-code}/initializr-service/src/main
:spring-initializr-docs-version: current :spring-initializr-docs-version: current
:spring-initializr-docs: http://docs.spring.io/initializr/docs/{spring-initializr-docs-version}/reference :spring-initializr-docs: http://docs.spring.io/initializr/docs/{spring-initializr-docs-version}/reference

View File

@@ -104,7 +104,7 @@ public class InitializrAutoConfiguration {
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
public TemplateRenderer templateRenderer(Environment environment) { public TemplateRenderer templateRenderer(Environment environment) {
RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(environment, "spring.groovy.template."); RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(environment, "spring.mustache.");
boolean cache = resolver.getProperty("cache", Boolean.class, true); boolean cache = resolver.getProperty("cache", Boolean.class, true);
TemplateRenderer templateRenderer = new TemplateRenderer(); TemplateRenderer templateRenderer = new TemplateRenderer();
templateRenderer.setCache(cache); templateRenderer.setCache(cache);