Skip to content

Commit d88a66b

Browse files
mhalbritterwilkinsona
authored andcommitted
Create spring-boot-thymeleaf module
1 parent ae00ac3 commit d88a66b

File tree

26 files changed

+131
-82
lines changed

26 files changed

+131
-82
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ include "spring-boot-project:spring-boot-test"
8787
include "spring-boot-project:spring-boot-test-autoconfigure"
8888
include "spring-boot-project:spring-boot-test-integration-tests"
8989
include "spring-boot-project:spring-boot-testcontainers"
90+
include "spring-boot-project:spring-boot-thymeleaf"
9091
include "spring-boot-project:spring-boot-tomcat"
9192
include "spring-boot-project:spring-boot-tools:spring-boot-antlib"
9293
include "spring-boot-project:spring-boot-tools:spring-boot-autoconfigure-processor"

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ dependencies {
108108
optional("org.apiguardian:apiguardian-api")
109109
optional("org.eclipse.angus:angus-mail")
110110
optional("com.github.ben-manes.caffeine:caffeine")
111-
optional("com.github.mxab.thymeleaf.extras:thymeleaf-extras-data-attribute")
112111
optional("com.sendgrid:sendgrid-java") {
113112
exclude group: "commons-logging", module: "commons-logging"
114113
}
115114
optional("com.zaxxer:HikariCP")
116-
optional("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
117115
optional("org.aspectj:aspectjweaver")
118116
optional("org.cache2k:cache2k-spring")
119117
optional("org.eclipse.jetty.ee10:jetty-ee10-webapp")
@@ -220,9 +218,6 @@ dependencies {
220218
exclude group: "org.eclipse.jetty", module: "jetty-servlet"
221219
exclude group: "jakarta.mail", module: "jakarta.mail-api"
222220
}
223-
optional("org.thymeleaf:thymeleaf")
224-
optional("org.thymeleaf:thymeleaf-spring6")
225-
optional("org.thymeleaf.extras:thymeleaf-extras-springsecurity6")
226221
optional("redis.clients:jedis")
227222

228223
testImplementation(project(":spring-boot-project:spring-boot-freemarker"))
@@ -231,6 +226,7 @@ dependencies {
231226
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
232227
testImplementation(project(":spring-boot-project:spring-boot-undertow"))
233228
testImplementation(project(":spring-boot-project:spring-boot-mustache"))
229+
testImplementation(project(":spring-boot-project:spring-boot-thymeleaf"))
234230
testImplementation(testFixtures(project(":spring-boot-project:spring-boot")))
235231
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
236232
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 & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,33 +1343,6 @@
13431343
"level": "warning"
13441344
}
13451345
},
1346-
{
1347-
"name": "spring.thymeleaf.prefix",
1348-
"defaultValue": "classpath:/templates/"
1349-
},
1350-
{
1351-
"name": "spring.thymeleaf.reactive.media-types",
1352-
"defaultValue": [
1353-
"text/html",
1354-
"application/xhtml+xml",
1355-
"application/xml",
1356-
"text/xml",
1357-
"application/rss+xml",
1358-
"application/atom+xml",
1359-
"application/javascript",
1360-
"application/ecmascript",
1361-
"text/javascript",
1362-
"text/ecmascript",
1363-
"application/json",
1364-
"text/css",
1365-
"text/plain",
1366-
"text/event-stream"
1367-
]
1368-
},
1369-
{
1370-
"name": "spring.thymeleaf.suffix",
1371-
"defaultValue": ".html"
1372-
},
13731346
{
13741347
"name": "spring.webflux.hiddenmethod.filter.enabled",
13751348
"type": "java.lang.Boolean",

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.thymeleaf.ThymeleafTemplateAvailabilityProvider,\
1211
org.springframework.boot.autoconfigure.web.servlet.JspTemplateAvailabilityProvider
1312

1413
# Depends on Database Initialization Detectors

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
@@ -65,7 +65,6 @@ org.springframework.boot.autoconfigure.security.oauth2.server.servlet.OAuth2Auth
6565
org.springframework.boot.autoconfigure.security.oauth2.server.servlet.OAuth2AuthorizationServerJwtAutoConfiguration
6666
org.springframework.boot.autoconfigure.sendgrid.SendGridAutoConfiguration
6767
org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
68-
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration
6968
org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration
7069
org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration
7170
org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222

2323
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
2424
import org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration;
25-
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
2625
import org.springframework.boot.builder.SpringApplicationBuilder;
2726
import org.springframework.boot.test.context.SpringBootTest;
2827
import org.springframework.boot.test.web.client.TestRestTemplate;
2928
import org.springframework.boot.test.web.server.LocalServerPort;
29+
import org.springframework.boot.thymeleaf.autoconfigure.ThymeleafAutoConfiguration;
3030
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
3131
import org.springframework.context.annotation.Configuration;
3232
import org.springframework.context.annotation.Import;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,7 @@ bom {
20882088
"spring-boot-test",
20892089
"spring-boot-test-autoconfigure",
20902090
"spring-boot-testcontainers",
2091+
"spring-boot-thymeleaf",
20912092
"spring-boot-tomcat",
20922093
"spring-boot-tx",
20932094
"spring-boot-undertow",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ dependencies {
8989
autoConfiguration(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "autoConfigurationMetadata"))
9090
autoConfiguration(project(path: ":spring-boot-project:spring-boot-rsocket", configuration: "autoConfigurationMetadata"))
9191
autoConfiguration(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "autoConfigurationMetadata"))
92+
autoConfiguration(project(path: ":spring-boot-project:spring-boot-thymeleaf", configuration: "autoConfigurationMetadata"))
9293
autoConfiguration(project(path: ":spring-boot-project:spring-boot-tomcat", configuration: "autoConfigurationMetadata"))
9394
autoConfiguration(project(path: ":spring-boot-project:spring-boot-tx", configuration: "autoConfigurationMetadata"))
9495
autoConfiguration(project(path: ":spring-boot-project:spring-boot-undertow", configuration: "autoConfigurationMetadata"))
@@ -133,6 +134,7 @@ dependencies {
133134
configurationProperties(project(path: ":spring-boot-project:spring-boot-rsocket", configuration: "configurationPropertiesMetadata"))
134135
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))
135136
configurationProperties(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "configurationPropertiesMetadata"))
137+
configurationProperties(project(path: ":spring-boot-project:spring-boot-thymeleaf", configuration: "configurationPropertiesMetadata"))
136138
configurationProperties(project(path: ":spring-boot-project:spring-boot-tomcat", configuration: "configurationPropertiesMetadata"))
137139
configurationProperties(project(path: ":spring-boot-project:spring-boot-tx", configuration: "configurationPropertiesMetadata"))
138140
configurationProperties(project(path: ":spring-boot-project:spring-boot-undertow", configuration: "configurationPropertiesMetadata"))

spring-boot-project/spring-boot-starters/spring-boot-starter-thymeleaf/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ description = "Starter for building MVC web applications using Thymeleaf views"
66

77
dependencies {
88
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
9-
api("org.thymeleaf:thymeleaf-spring6")
9+
api(project(":spring-boot-project:spring-boot-thymeleaf"))
1010
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ dependencies {
107107
testImplementation(project(":spring-boot-project:spring-boot-freemarker"))
108108
testImplementation(project(":spring-boot-project:spring-boot-mustache"))
109109
testImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
110+
testImplementation(project(":spring-boot-project:spring-boot-thymeleaf"))
110111
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
111112
testImplementation("ch.qos.logback:logback-classic")
112113
testImplementation("com.fasterxml.jackson.module:jackson-module-parameter-names")

0 commit comments

Comments
 (0)