From 1bc4cc1c85f5d4da43988cce977b112630a93da5 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 10 Jul 2015 10:51:34 +0100 Subject: [PATCH] Use depednency management in snippets --- _includes/build.gradle | 16 +++++++++++++++- _includes/pom.xml | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/_includes/build.gradle b/_includes/build.gradle index 5821574..a7604b3 100644 --- a/_includes/build.gradle +++ b/_includes/build.gradle @@ -1,3 +1,17 @@ +buildscript { + dependencies { + classpath "io.spring.gradle:dependency-management-plugin:0.5.2.RELEASE" + } +} + +apply plugin: "io.spring.dependency-management" + +dependencyManagement { + imports { + mavenBom '{@= groupId @}:spring-cloud-bus:{@= version @}' + } +} + dependencies { - compile '{@= groupId @}:spring-cloud-starter-bus-amqp:{@= version @}' + compile '{@= groupId @}:spring-cloud-starter-bus-amqp' } \ No newline at end of file diff --git a/_includes/pom.xml b/_includes/pom.xml index 1c88cbd..fcb327b 100644 --- a/_includes/pom.xml +++ b/_includes/pom.xml @@ -2,7 +2,7 @@ {@= groupId @} - spring-cloud-starters + spring-cloud-bus-parent {@= version @} pom import