
Thymeleaf 3.0 implements the Spring 5.0 view infrastructure for WebMVC and the new WebFlux framework. This commit adds auto-configuration for the WebFlux support. In that process, the configuration property for `spring.thymeleaf` has been changed to add `spring.thymeleaf.servlet` and `spring.thymeleaf.reactive` for MVC/WebFlux specific properties. Now that the `spring-boot-starter-thymeleaf` does not only support Spring MVC, the transitive dependency on `spring-boot-starter-web` is removed from it. Fixes gh-8124
41 lines
1.2 KiB
Groovy
41 lines
1.2 KiB
Groovy
buildscript {
|
|
ext {
|
|
springBootVersion = '2.0.0.BUILD-SNAPSHOT'
|
|
springLoadedVersion = '1.2.4.RELEASE'
|
|
}
|
|
repositories {
|
|
// NOTE: You should declare only repositories that you need here
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url "http://repo.spring.io/release" }
|
|
maven { url "http://repo.spring.io/milestone" }
|
|
maven { url "http://repo.spring.io/snapshot" }
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
classpath("org.springframework:springloaded:${springLoadedVersion}")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
version = springBootVersion
|
|
|
|
repositories {
|
|
// NOTE: You should declare only repositories that you need here
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url "http://repo.spring.io/release" }
|
|
maven { url "http://repo.spring.io/milestone" }
|
|
maven { url "http://repo.spring.io/snapshot" }
|
|
}
|
|
|
|
dependencies {
|
|
compile("org.springframework.boot:spring-boot-starter-web")
|
|
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
|
|
compile("org.hibernate:hibernate-validator")
|
|
testCompile("org.springframework.boot:spring-boot-starter-test")
|
|
}
|