diff --git a/build.gradle b/build.gradle index c779163..d2a04db 100644 --- a/build.gradle +++ b/build.gradle @@ -5,13 +5,19 @@ apply plugin: 'maven' apply plugin: 'spring-boot' +dependencyManagement { + imports { + mavenBom 'org.springframework.cloud:spring-cloud-starter-parent:' + dependencyManagementPluginVersion + } +} + buildscript { dependencies { - classpath("org.springframework.boot:spring-boot-gradle-plugin:" + springBootVersion) + classpath "org.springframework.boot:spring-boot-gradle-plugin:" + springBootVersion } repositories { - mavenCentral() + mavenCentral() } } @@ -27,17 +33,17 @@ repositories { dependencies { - compile 'org.springframework.boot:spring-boot-starter:' + springBootVersion, - 'org.springframework.boot:spring-boot-starter-web:' + springBootVersion, - 'org.springframework.boot:spring-boot-starter-thymeleaf:' + springBootVersion, - 'org.springframework.data:spring-data-commons:' + springDataCommonsVersion, - 'org.springframework.boot:spring-boot-starter-test:' + springBootVersion, - 'org.springframework.boot:spring-boot-starter-data-jpa:' + springBootVersion, - 'org.hsqldb:hsqldb:' + hsqldbVersion, - 'org.springframework.cloud:spring-cloud-starter:' + springCloudStarterVersion, - 'org.springframework.cloud:spring-cloud-starter-eureka-server:' + springCloudStarterEurekaServerVersion - - testCompile 'junit:junit:4.+' + compile 'org.springframework.boot:spring-boot-starter', + 'org.springframework.boot:spring-boot-starter-web' , + 'org.springframework.boot:spring-boot-starter-thymeleaf', + 'org.springframework.data:spring-data-commons', + 'org.springframework.boot:spring-boot-starter-test', + 'org.springframework.boot:spring-boot-starter-data-jpa', + 'org.hsqldb:hsqldb', + 'org.springframework.cloud:spring-cloud-starter', + 'org.springframework.cloud:spring-cloud-starter-eureka-server' + + testCompile 'junit:junit' } springBoot { diff --git a/gradle.properties b/gradle.properties index 07ff209..bea9457 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,4 @@ artifactId=microservice-demo version=1.1.0.RELEASE packaging=jar springBootVersion=1.4.0.RELEASE -springDataCommonsVersion=1.12.2.RELEASE -hsqldbVersion=2.3.4 -springCloudStarterVersion=1.1.2.RELEASE -springCloudStarterEurekaServerVersion=1.1.6.RELEASE +dependencyManagementPluginVersion=Brixton.RELEASE