Skip to content

Commit d95069c

Browse files
mhalbritterwilkinsona
authored andcommitted
Create spring-boot-freemarker module
1 parent 9d77f6c commit d95069c

File tree

35 files changed

+127
-93
lines changed

35 files changed

+127
-93
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ include "spring-boot-project:spring-boot-devtools"
5252
include "spring-boot-project:spring-boot-docker-compose"
5353
include "spring-boot-project:spring-boot-docs"
5454
include "spring-boot-project:spring-boot-flyway"
55+
include "spring-boot-project:spring-boot-freemarker"
5556
include "spring-boot-project:spring-boot-groovy-templates"
5657
include "spring-boot-project:spring-boot-jackson"
5758
include "spring-boot-project:spring-boot-jdbc"

spring-boot-project/spring-boot-autoconfigure-all/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ dependencies {
128128
optional("org.elasticsearch.client:elasticsearch-rest-client-sniffer") {
129129
exclude group: "commons-logging", module: "commons-logging"
130130
}
131-
optional("org.freemarker:freemarker")
132131
optional("org.glassfish.jersey.containers:jersey-container-servlet-core")
133132
optional("org.glassfish.jersey.containers:jersey-container-servlet")
134133
optional("org.glassfish.jersey.core:jersey-server")
@@ -234,6 +233,7 @@ dependencies {
234233
optional("org.thymeleaf.extras:thymeleaf-extras-springsecurity6")
235234
optional("redis.clients:jedis")
236235

236+
testImplementation(project(":spring-boot-project:spring-boot-freemarker"))
237237
testImplementation(project(":spring-boot-project:spring-boot-jetty"))
238238
testImplementation(project(":spring-boot-project:spring-boot-test"))
239239
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -845,42 +845,6 @@
845845
"reason": "Reactive Elasticsearch client no longer uses WebClient."
846846
}
847847
},
848-
{
849-
"name": "spring.freemarker.allow-request-override",
850-
"description": "Whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name. Only supported with Spring MVC."
851-
},
852-
{
853-
"name": "spring.freemarker.allow-session-override",
854-
"description": "Whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name. Only supported with Spring MVC."
855-
},
856-
{
857-
"name": "spring.freemarker.cache",
858-
"description": "Whether to enable template caching. Only supported with Spring MVC."
859-
},
860-
{
861-
"name": "spring.freemarker.content-type",
862-
"description": "Content-Type value. Only supported with Spring MVC."
863-
},
864-
{
865-
"name": "spring.freemarker.expose-request-attributes",
866-
"description": "Whether all request attributes should be added to the model prior to merging with the template. Only supported with Spring MVC."
867-
},
868-
{
869-
"name": "spring.freemarker.expose-session-attributes",
870-
"description": "Whether all HttpSession attributes should be added to the model prior to merging with the template. Only supported with Spring MVC."
871-
},
872-
{
873-
"name": "spring.freemarker.expose-spring-macro-helpers",
874-
"description": "Whether to expose a RequestContext for use by Spring's macro library, under the name \"springMacroRequestContext\". Only supported with Spring MVC."
875-
},
876-
{
877-
"name": "spring.freemarker.prefix",
878-
"defaultValue": ""
879-
},
880-
{
881-
"name": "spring.freemarker.suffix",
882-
"defaultValue": ".ftlh"
883-
},
884848
{
885849
"name": "spring.graphql.schema.file-extensions",
886850
"defaultValue": ".graphqls,.gqls"

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring.factories

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ org.springframework.boot.autoconfigure.r2dbc.NoConnectionFactoryBeanFailureAnaly
1818

1919
# Template Availability Providers
2020
org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider=\
21-
org.springframework.boot.autoconfigure.freemarker.FreeMarkerTemplateAvailabilityProvider,\
2221
org.springframework.boot.autoconfigure.mustache.MustacheTemplateAvailabilityProvider,\
2322
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafTemplateAvailabilityProvider,\
2423
org.springframework.boot.autoconfigure.web.servlet.JspTemplateAvailabilityProvider

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
3636
org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration
3737
org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
3838
org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration
39-
org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration
4039
org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration
4140
org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQueryByExampleAutoConfiguration
4241
org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQuerydslAutoConfiguration

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/web/servlet/error/BasicErrorControllerIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
import org.springframework.boot.SpringApplication;
4040
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
4141
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
42-
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
4342
import org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration;
4443
import org.springframework.boot.autoconfigure.web.ServerProperties;
4544
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
4645
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
46+
import org.springframework.boot.freemarker.autoconfigure.FreeMarkerAutoConfiguration;
4747
import org.springframework.boot.test.web.client.TestRestTemplate;
4848
import org.springframework.boot.testsupport.classpath.resources.WithResource;
4949
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,7 @@ bom {
19971997
"spring-boot-devtools",
19981998
"spring-boot-docker-compose",
19991999
"spring-boot-flyway",
2000+
"spring-boot-freemarker",
20002001
"spring-boot-groovy-templates",
20012002
"spring-boot-jackson",
20022003
"spring-boot-jarmode-tools",

spring-boot-project/spring-boot-devtools/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dependencies {
5050
optional("org.springframework.data:spring-data-redis")
5151
optional("org.springframework.session:spring-session-core")
5252

53+
testImplementation(project(":spring-boot-project:spring-boot-freemarker"))
5354
testImplementation(project(":spring-boot-project:spring-boot-test"))
5455
testImplementation(project(":spring-boot-project:spring-boot-tomcat"))
5556
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
@@ -68,7 +69,6 @@ dependencies {
6869
testImplementation("org.springframework:spring-websocket")
6970
testImplementation("org.springframework.hateoas:spring-hateoas")
7071
testImplementation("org.springframework.security:spring-security-test")
71-
testImplementation("org.freemarker:freemarker")
7272

7373
testRuntimeOnly("org.aspectj:aspectjweaver")
7474
testRuntimeOnly("org.yaml:snakeyaml")

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
3434
import org.springframework.boot.SpringApplication;
3535
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
36-
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
3736
import org.springframework.boot.autoconfigure.web.WebProperties;
3837
import org.springframework.boot.autoconfigure.web.WebProperties.Resources;
3938
import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
@@ -43,6 +42,7 @@
4342
import org.springframework.boot.devtools.restart.MockRestartInitializer;
4443
import org.springframework.boot.devtools.restart.MockRestarter;
4544
import org.springframework.boot.devtools.restart.Restarter;
45+
import org.springframework.boot.freemarker.autoconfigure.FreeMarkerAutoConfiguration;
4646
import org.springframework.boot.tomcat.TomcatWebServer;
4747
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
4848
import org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext;

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ dependencies {
6161
autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "autoConfigurationMetadata"))
6262
autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "autoConfigurationMetadata"))
6363
autoConfiguration(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "autoConfigurationMetadata"))
64+
autoConfiguration(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "autoConfigurationMetadata"))
6465
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "autoConfigurationMetadata"))
6566
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jdbc", configuration: "autoConfigurationMetadata"))
6667
autoConfiguration(project(path: ":spring-boot-project:spring-boot-jetty", configuration: "autoConfigurationMetadata"))
@@ -86,6 +87,7 @@ dependencies {
8687
configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata"))
8788
configurationProperties(project(path: ":spring-boot-project:spring-boot-docker-compose", configuration: "configurationPropertiesMetadata"))
8889
configurationProperties(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "configurationPropertiesMetadata"))
90+
configurationProperties(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "configurationPropertiesMetadata"))
8991
configurationProperties(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "configurationPropertiesMetadata"))
9092
configurationProperties(project(path: ":spring-boot-project:spring-boot-jdbc", configuration: "configurationPropertiesMetadata"))
9193
configurationProperties(project(path: ":spring-boot-project:spring-boot-jetty", configuration: "configurationPropertiesMetadata"))

0 commit comments

Comments
 (0)