11// tag::propdeps-plugin-1[]
22buildscript {
33 ext {
4- springBootVersion = ' 1.4.3.RELEASE'
4+ springBootVersion = ' 2.0.0.BUILD-SNAPSHOT'
5+ thymeleafVersion = ' 3.0.4-SNAPSHOT'
56 }
67 repositories {
78 mavenCentral()
@@ -16,9 +17,13 @@ buildscript {
1617}
1718// end::propdeps-plugin-1[]
1819
19- // plugins {
20- // id "com.gorylenko.gradle-git-properties" version "1.4.17"
21- // }
20+ plugins {
21+ id " io.spring.dependency-management" version " 1.0.0.RC2"
22+
23+ // tag::gradle-git[]
24+ id " com.gorylenko.gradle-git-properties" version " 1.4.17"
25+ // end::gradle-git[]
26+ }
2227
2328apply plugin : ' java'
2429apply plugin : ' eclipse'
@@ -39,6 +44,7 @@ repositories {
3944 maven { url " https://repo.spring.io/snapshot" }
4045 maven { url " https://repo.spring.io/milestone" }
4146 maven { url " https://repo.spring.io/release" }
47+ maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
4248 maven { url " https://dl.bintray.com/rabbitmq/maven-milestones/" }
4349}
4450
4753 version = ' 0.0.1-SNAPSHOT'
4854}
4955
56+ ext[' thymeleaf.version' ] = thymeleafVersion
57+
5058dependencies {
59+ compile(' org.springframework.boot:spring-boot-starter-webflux' )
5160 compile(' org.springframework.boot:spring-boot-starter-actuator' )
52- compile(' org.springframework.boot:spring-boot-starter- thymeleaf' )
61+ compile(" org.thymeleaf: thymeleaf-spring5: ${ thymeleafVersion } " )
5362 compile(' org.springframework.boot:spring-boot-devtools' )
5463 compile(' org.projectlombok:lombok' )
5564 compile(' org.springframework.cloud:spring-cloud-starter-stream-rabbit' )
@@ -80,9 +89,6 @@ dependencies {
8089 compile(' org.thymeleaf.extras:thymeleaf-extras-springsecurity4:2.1.3.RELEASE' )
8190 // end::thymeleaf-security[]
8291
83- compile(" io.projectreactor:reactor-core:2.0.8.RELEASE" )
84- compile(" io.projectreactor:reactor-net:2.0.8.RELEASE" )
85-
8692 // tag::configuration-processor[]
8793 optional " org.springframework.boot:spring-boot-configuration-processor"
8894 // end::configuration-processor[]
@@ -96,6 +102,7 @@ compileJava.dependsOn(processResources)
96102
97103dependencyManagement {
98104 imports {
99- mavenBom " org.springframework.cloud:spring-cloud-dependencies:Camden.SR2"
105+ mavenBom " io.projectreactor:reactor-bom:Aluminium-SR1"
106+ mavenBom " org.springframework.cloud:spring-cloud-dependencies:Dalston.BUILD-SNAPSHOT"
100107 }
101108}
0 commit comments