2017-04-16 12:17:24 +00:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
springBootVersion = '1.5.2.RELEASE'
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
}
|
2017-04-16 16:59:49 +00:00
|
|
|
}
|
|
|
|
|
2018-01-14 11:51:46 +00:00
|
|
|
task cleanAll(dependsOn: [':config_server:clean', ':eureka-service:clean', ':events:clean', ':teams:clean', ':users:clean', ':steleks-proxy:clean'])
|
2017-04-16 16:59:49 +00:00
|
|
|
task startConfigServer(dependsOn: [':config_server:bootRun'])
|
|
|
|
task startEurekaService(dependsOn: [':eureka-service:bootRun'])
|
2018-01-14 11:51:46 +00:00
|
|
|
task startMicroservices(dependsOn: [':events:bootRun', ':teams:bootRun', ':users:bootRun', ':steleks-proxy:build'])
|
2017-04-16 16:59:49 +00:00
|
|
|
task runAll(dependsOn: ['cleanAll', 'startConfigServer', 'startEurekaService', 'startMicroservices'])
|
|
|
|
startConfigServer.mustRunAfter cleanAll
|
|
|
|
|
|
|
|
task buildConfigServer(dependsOn: [':config_server:build'])
|
|
|
|
task buildEurekaService(dependsOn: [':eureka-service:build'])
|
2018-01-14 11:51:46 +00:00
|
|
|
task buildMicroservices(dependsOn: [':events:build', ':teams:build', ':users:build', ':steleks-proxy:build'])
|
2017-04-16 16:59:49 +00:00
|
|
|
task stage(dependsOn: ['cleanAll', 'buildConfigServer', 'buildEurekaService', 'buildMicroservices'])
|
|
|
|
buildConfigServer.mustRunAfter cleanAll
|
|
|
|
buildEurekaService.mustRunAfter buildConfigServer
|
|
|
|
buildMicroservices.mustRunAfter buildEurekaService
|
|
|
|
|