From 0323048edee0906e11c35015b4a2735b42165c8d Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 10 Jul 2015 10:53:14 +0100 Subject: [PATCH] Use depednency management in snippets --- _includes/build.gradle | 16 +++++++++++++++- _includes/pom.xml | 14 ++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/_includes/build.gradle b/_includes/build.gradle index a69941d4..74c79ad4 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-config:{@= version @}' + } +} + dependencies { - compile '{@= groupId @}:spring-cloud-config-client:{@= version @}' + compile '{@= groupId @}:spring-cloud-starter-config' } \ No newline at end of file diff --git a/_includes/pom.xml b/_includes/pom.xml index b818af7f..baf4bb4c 100644 --- a/_includes/pom.xml +++ b/_includes/pom.xml @@ -1,7 +1,17 @@ + + + + {@= groupId @} + spring-cloud-config + {@= version @} + pom + import + + + {@= groupId @} - spring-cloud-config-client - {@= version @} + spring-cloud-starter-config