Use depednency management in snippets
This commit is contained in:
@@ -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'
|
||||
}
|
||||
@@ -1,7 +1,17 @@
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<artifactId>spring-cloud-config</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<artifactId>spring-cloud-config-client</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
<artifactId>spring-cloud-starter-config</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
Reference in New Issue
Block a user