From 607b371706045263588a17454288e367033b8694 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 24 Jan 2014 09:28:45 +0000 Subject: [PATCH] Add thymeleaf starter Fixes gh-264 --- .../spring-boot-sample-actuator-ui/pom.xml | 15 +++------- .../spring-boot-sample-web-secure/pom.xml | 6 +--- .../spring-boot-sample-web-ui/pom.xml | 10 +------ spring-boot-starters/pom.xml | 1 + .../spring-boot-starter-parent/pom.xml | 5 ++++ .../spring-boot-starter-thymeleaf/pom.xml | 30 +++++++++++++++++++ .../main/resources/META-INF/spring.provides | 1 + 7 files changed, 43 insertions(+), 25 deletions(-) create mode 100644 spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml create mode 100644 spring-boot-starters/spring-boot-starter-thymeleaf/src/main/resources/META-INF/spring.provides diff --git a/spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml b/spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml index 17e99e5c850..ae97b3200be 100644 --- a/spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml +++ b/spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml @@ -21,20 +21,13 @@ ${project.groupId} - spring-boot-starter-web + spring-boot-starter-thymeleaf ${project.version} - org.springframework.security - spring-security-config - - - org.springframework.security - spring-security-web - - - org.thymeleaf - thymeleaf-spring4 + ${project.groupId} + spring-boot-starter-security + ${project.version} org.jolokia diff --git a/spring-boot-samples/spring-boot-sample-web-secure/pom.xml b/spring-boot-samples/spring-boot-sample-web-secure/pom.xml index 668ea45b8b5..b7403a3ab4d 100644 --- a/spring-boot-samples/spring-boot-sample-web-secure/pom.xml +++ b/spring-boot-samples/spring-boot-sample-web-secure/pom.xml @@ -21,13 +21,9 @@ ${project.groupId} - spring-boot-starter-web + spring-boot-starter-thymeleaf ${project.version} - - org.thymeleaf - thymeleaf-spring4 - ${project.groupId} spring-boot-starter-test diff --git a/spring-boot-samples/spring-boot-sample-web-ui/pom.xml b/spring-boot-samples/spring-boot-sample-web-ui/pom.xml index 3f0aea9d985..74a88ae02a7 100644 --- a/spring-boot-samples/spring-boot-sample-web-ui/pom.xml +++ b/spring-boot-samples/spring-boot-sample-web-ui/pom.xml @@ -16,15 +16,7 @@ ${project.groupId} - spring-boot-starter-web - - - org.thymeleaf - thymeleaf-spring4 - - - nz.net.ultraq.thymeleaf - thymeleaf-layout-dialect + spring-boot-starter-thymeleaf org.hibernate diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 89b5c5c0c9e..8b6fb1ae84d 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -31,6 +31,7 @@ spring-boot-starter-security spring-boot-starter-shell-remote spring-boot-starter-test + spring-boot-starter-thymeleaf spring-boot-starter-tomcat spring-boot-starter-web spring-boot-starter-websocket diff --git a/spring-boot-starters/spring-boot-starter-parent/pom.xml b/spring-boot-starters/spring-boot-starter-parent/pom.xml index 59f1e20ff38..2bb22f0f8f3 100644 --- a/spring-boot-starters/spring-boot-starter-parent/pom.xml +++ b/spring-boot-starters/spring-boot-starter-parent/pom.xml @@ -117,6 +117,11 @@ spring-boot-starter-test ${spring-boot.version} + + org.springframework.boot + spring-boot-starter-thymeleaf + ${spring-boot.version} + org.springframework.boot spring-boot-starter-tomcat diff --git a/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml b/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml new file mode 100644 index 00000000000..fd00cacc98c --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-thymeleaf/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starters + 1.0.0.BUILD-SNAPSHOT + + spring-boot-starter-thymeleaf + jar + + ${basedir}/../.. + + + + ${project.groupId} + spring-boot-starter-web + ${project.version} + + + org.thymeleaf + thymeleaf-spring4 + + + nz.net.ultraq.thymeleaf + thymeleaf-layout-dialect + + + diff --git a/spring-boot-starters/spring-boot-starter-thymeleaf/src/main/resources/META-INF/spring.provides b/spring-boot-starters/spring-boot-starter-thymeleaf/src/main/resources/META-INF/spring.provides new file mode 100644 index 00000000000..55305437281 --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-thymeleaf/src/main/resources/META-INF/spring.provides @@ -0,0 +1 @@ +provides: thymeleaf-spring4,thymeleaf-layout-dialect \ No newline at end of file