Align snippets with start.spring.io
Uses a Boot parent and a Cloud BOM instead of the CLoud parent
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath "io.spring.gradle:dependency-management-plugin:0.4.0.RELEASE"
|
||||
}
|
||||
ext {
|
||||
springBootVersion = '{@= bootVersion @}'
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "io.spring.dependency-management"
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'spring-boot'
|
||||
|
||||
dependencyManagement {
|
||||
imports {
|
||||
@@ -16,3 +23,4 @@ dependencies {
|
||||
compile '{@= groupId @}:spring-cloud-starter-config'
|
||||
compile '{@= groupId @}:spring-cloud-starter-eureka'
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
<parent>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-cloud-starter-parent</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
<version>{@= bootVersion @}</version>
|
||||
</parent>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
|
||||
Reference in New Issue
Block a user