Skip to content

Commit 13b51d7

Browse files
mhalbritterwilkinsona
authored andcommitted
Create spring-boot-mustache module
1 parent 9df2ac0 commit 13b51d7

File tree

48 files changed

+176
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+176
-113
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ include "spring-boot-project:spring-boot-jsonb"
7373
include "spring-boot-project:spring-boot-kafka"
7474
include "spring-boot-project:spring-boot-liquibase"
7575
include "spring-boot-project:spring-boot-mail"
76+
include "spring-boot-project:spring-boot-mustache"
7677
include "spring-boot-project:spring-boot-parent"
7778
include "spring-boot-project:spring-boot-pulsar"
7879
include "spring-boot-project:spring-boot-r2dbc"

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ dependencies {
1818
optional("com.google.code.gson:gson")
1919
optional("com.oracle.database.jdbc:ucp11")
2020
optional("com.oracle.database.jdbc:ojdbc11")
21-
optional("com.samskivert:jmustache")
2221
optional("com.zaxxer:HikariCP")
2322
optional("io.netty:netty-tcnative-boringssl-static")
2423
optional("io.projectreactor:reactor-tools")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ dependencies {
7575
optional("com.oracle.database.jdbc:ojdbc11")
7676
optional("com.oracle.database.jdbc:ucp11")
7777
optional("com.querydsl:querydsl-core")
78-
optional("com.samskivert:jmustache")
7978
optional("io.lettuce:lettuce-core")
8079
optional("io.projectreactor.netty:reactor-netty-http")
8180
optional("io.r2dbc:r2dbc-spi")
@@ -233,6 +232,7 @@ dependencies {
233232
testImplementation(project(":spring-boot-project:spring-boot-test"))
234233
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
235234
testImplementation(project(":spring-boot-project:spring-boot-undertow"))
235+
testImplementation(project(":spring-boot-project:spring-boot-mustache"))
236236
testImplementation(testFixtures(project(":spring-boot-project:spring-boot")))
237237
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
238238
testImplementation("ch.qos.logback:logback-classic")

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -772,18 +772,6 @@
772772
"reason": "Narayana support has moved to third party starter."
773773
}
774774
},
775-
{
776-
"name": "spring.mustache.prefix",
777-
"defaultValue": "classpath:/templates/"
778-
},
779-
{
780-
"name": "spring.mustache.reactive.media-types",
781-
"defaultValue": "text/html;charset=UTF-8"
782-
},
783-
{
784-
"name": "spring.mustache.suffix",
785-
"defaultValue": ".mustache"
786-
},
787775
{
788776
"name": "spring.mvc.converters.preferred-json-mapper",
789777
"type": "java.lang.String",

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
@@ -8,7 +8,6 @@ org.springframework.boot.autoconfigure.data.redis.RedisUrlSyntaxFailureAnalyzer
88

99
# Template Availability Providers
1010
org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider=\
11-
org.springframework.boot.autoconfigure.mustache.MustacheTemplateAvailabilityProvider,\
1211
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafTemplateAvailabilityProvider,\
1312
org.springframework.boot.autoconfigure.web.servlet.JspTemplateAvailabilityProvider
1413

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
@@ -51,7 +51,6 @@ org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfigurati
5151
org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration
5252
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
5353
org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration
54-
org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration
5554
org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration
5655
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration
5756
org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
import org.springframework.beans.factory.ObjectProvider;
3333
import org.springframework.boot.autoconfigure.AutoConfigurations;
3434
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
35-
import org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration;
3635
import org.springframework.boot.autoconfigure.web.ServerProperties;
3736
import org.springframework.boot.autoconfigure.web.WebProperties;
3837
import org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration;
3938
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;
39+
import org.springframework.boot.mustache.autoconfigure.MustacheAutoConfiguration;
4040
import org.springframework.boot.reactor.netty.autoconfigure.NettyReactiveWebServerAutoConfiguration;
4141
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
4242
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,6 +2020,7 @@ bom {
20202020
"spring-boot-loader-classic",
20212021
"spring-boot-loader-tools",
20222022
"spring-boot-mail",
2023+
"spring-boot-mustache",
20232024
"spring-boot-properties-migrator",
20242025
"spring-boot-pulsar",
20252026
"spring-boot-r2dbc",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ dependencies {
7979
autoConfiguration(project(path: ":spring-boot-project:spring-boot-kafka", configuration: "autoConfigurationMetadata"))
8080
autoConfiguration(project(path: ":spring-boot-project:spring-boot-liquibase", configuration: "autoConfigurationMetadata"))
8181
autoConfiguration(project(path: ":spring-boot-project:spring-boot-mail", configuration: "autoConfigurationMetadata"))
82+
autoConfiguration(project(path: ":spring-boot-project:spring-boot-mustache", configuration: "autoConfigurationMetadata"))
8283
autoConfiguration(project(path: ":spring-boot-project:spring-boot-pulsar", configuration: "autoConfigurationMetadata"))
8384
autoConfiguration(project(path: ":spring-boot-project:spring-boot-r2dbc", configuration: "autoConfigurationMetadata"))
8485
autoConfiguration(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "autoConfigurationMetadata"))
@@ -117,6 +118,7 @@ dependencies {
117118
configurationProperties(project(path: ":spring-boot-project:spring-boot-kafka", configuration: "configurationPropertiesMetadata"))
118119
configurationProperties(project(path: ":spring-boot-project:spring-boot-liquibase", configuration: "configurationPropertiesMetadata"))
119120
configurationProperties(project(path: ":spring-boot-project:spring-boot-mail", configuration: "configurationPropertiesMetadata"))
121+
configurationProperties(project(path: ":spring-boot-project:spring-boot-mustache", configuration: "configurationPropertiesMetadata"))
120122
configurationProperties(project(path: ":spring-boot-project:spring-boot-pulsar", configuration: "configurationPropertiesMetadata"))
121123
configurationProperties(project(path: ":spring-boot-project:spring-boot-r2dbc", configuration: "configurationPropertiesMetadata"))
122124
configurationProperties(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "configurationPropertiesMetadata"))

spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/spring-mvc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ javadoc:org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurati
232232
It looks for resources in a loader path by surrounding the view name with a prefix and suffix (externalized to `spring.groovy.template.prefix` and `spring.groovy.template.suffix`).
233233
The prefix and suffix have default values of '`classpath:/templates/`' and '`.tpl`', respectively.
234234
You can override javadoc:org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver[] by providing a bean of the same name.
235-
* If you use Mustache, you also have a javadoc:org.springframework.boot.web.servlet.view.MustacheViewResolver[] named '`mustacheViewResolver`'.
235+
* If you use Mustache, you also have a javadoc:org.springframework.boot.mustache.servlet.view.MustacheViewResolver[] named '`mustacheViewResolver`'.
236236
It looks for resources by surrounding the view name with a prefix and suffix.
237237
The prefix is `spring.mustache.prefix`, and the suffix is `spring.mustache.suffix`.
238238
The values of the prefix and suffix default to '`classpath:/templates/`' and '`.mustache`', respectively.
239-
You can override javadoc:org.springframework.boot.web.servlet.view.MustacheViewResolver[] by providing a bean of the same name.
239+
You can override javadoc:org.springframework.boot.mustache.servlet.view.MustacheViewResolver[] by providing a bean of the same name.
240240

241241
For more detail, see the following sections:
242242

0 commit comments

Comments
 (0)