Fix common module build configuration

master
esensar 2018-01-14 12:51:46 +01:00
parent a0363cdaa8
commit 17eaecd16a
2 changed files with 5 additions and 7 deletions

View File

@ -10,16 +10,16 @@ buildscript {
} }
} }
task cleanAll(dependsOn: [':config_server:clean', ':eureka-service:clean', ':events:clean', ':teams:clean', ':users:clean']) task cleanAll(dependsOn: [':config_server:clean', ':eureka-service:clean', ':events:clean', ':teams:clean', ':users:clean', ':steleks-proxy:clean'])
task startConfigServer(dependsOn: [':config_server:bootRun']) task startConfigServer(dependsOn: [':config_server:bootRun'])
task startEurekaService(dependsOn: [':eureka-service:bootRun']) task startEurekaService(dependsOn: [':eureka-service:bootRun'])
task startMicroservices(dependsOn: [':events:bootRun', ':teams:bootRun', ':users:bootRun']) task startMicroservices(dependsOn: [':events:bootRun', ':teams:bootRun', ':users:bootRun', ':steleks-proxy:build'])
task runAll(dependsOn: ['cleanAll', 'startConfigServer', 'startEurekaService', 'startMicroservices']) task runAll(dependsOn: ['cleanAll', 'startConfigServer', 'startEurekaService', 'startMicroservices'])
startConfigServer.mustRunAfter cleanAll startConfigServer.mustRunAfter cleanAll
task buildConfigServer(dependsOn: [':config_server:build']) task buildConfigServer(dependsOn: [':config_server:build'])
task buildEurekaService(dependsOn: [':eureka-service:build']) task buildEurekaService(dependsOn: [':eureka-service:build'])
task buildMicroservices(dependsOn: [':events:build', ':teams:build', ':users:build']) task buildMicroservices(dependsOn: [':events:build', ':teams:build', ':users:build', ':steleks-proxy:build'])
task stage(dependsOn: ['cleanAll', 'buildConfigServer', 'buildEurekaService', 'buildMicroservices']) task stage(dependsOn: ['cleanAll', 'buildConfigServer', 'buildEurekaService', 'buildMicroservices'])
buildConfigServer.mustRunAfter cleanAll buildConfigServer.mustRunAfter cleanAll
buildEurekaService.mustRunAfter buildConfigServer buildEurekaService.mustRunAfter buildConfigServer

View File

@ -6,14 +6,14 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE') classpath('io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE')
} }
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management'
version = '0.0.1-SNAPSHOT' version = '0.0.1-SNAPSHOT'
@ -25,8 +25,6 @@ repositories {
dependencies { dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-web') compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.cloud:spring-cloud-starter-eureka') compile('org.springframework.cloud:spring-cloud-starter-eureka')
testCompile('org.springframework.cloud:spring-cloud-starter-eureka-server') testCompile('org.springframework.cloud:spring-cloud-starter-eureka-server')