Use depednency management in snippets

This commit is contained in:
Dave Syer
2015-07-10 10:51:34 +01:00
parent b2a14e0c84
commit 1bc4cc1c85
2 changed files with 16 additions and 2 deletions

View File

@@ -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'
}

View File

@@ -2,7 +2,7 @@
<dependencies>
<dependency>
<groupId>{@= groupId @}</groupId>
<artifactId>spring-cloud-starters</artifactId>
<artifactId>spring-cloud-bus-parent</artifactId>
<version>{@= version @}</version>
<type>pom</type>
<scope>import</scope>