From de45269ec3fb15d8b376ea16124c36f620bbbf68 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Mon, 6 Jun 2016 19:16:24 -0600 Subject: [PATCH] update gradle tip. --- docs/src/main/asciidoc/spring-cloud-netflix.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-netflix.adoc b/docs/src/main/asciidoc/spring-cloud-netflix.adoc index bcbbcf54..2f0ee6db 100644 --- a/docs/src/main/asciidoc/spring-cloud-netflix.adoc +++ b/docs/src/main/asciidoc/spring-cloud-netflix.adoc @@ -319,22 +319,22 @@ Eureka background reading: see https://github.com/cfregly/fluxcapacitor/wiki/Net [TIP] ==== -Due to Gradle's dependency resolution rules and the lack of a parent bom feature, simply depending on spring-cloud-starter-eureka-server can cause failures on application startup. To remedy this the Spring dependency management plugin must be added and the Spring cloud starter parent bom must be imported like so: +Due to Gradle's dependency resolution rules and the lack of a parent bom feature, simply depending on spring-cloud-starter-eureka-server can cause failures on application startup. To remedy this the Spring Boot Gradle plugin must be added and the Spring cloud starter parent bom must be imported like so: .build.gradle [source,java,indent=0] ---- buildscript { dependencies { - classpath "io.spring.gradle:dependency-management-plugin:0.4.0.RELEASE" + classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE") } } -apply plugin: "io.spring.dependency-management" +apply plugin: "spring-boot" dependencyManagement { imports { - mavenBom 'org.springframework.cloud:spring-cloud-starter-parent:1.0.0.RELEASE' + mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.RELEASE" } } ----