Add tasks for running and building all modules
parent
ddcd88ea53
commit
8f50d28894
18
build.gradle
18
build.gradle
|
@ -9,3 +9,21 @@ buildscript {
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task cleanAll(dependsOn: [':config_server:clean', ':eureka-service:clean', ':events:clean', ':teams:clean', ':users:clean'])
|
||||||
|
task startConfigServer(dependsOn: [':config_server:bootRun'])
|
||||||
|
task startEurekaService(dependsOn: [':eureka-service:bootRun'])
|
||||||
|
task startMicroservices(dependsOn: [':events:bootRun', ':teams:bootRun', ':users:bootRun'])
|
||||||
|
task runAll(dependsOn: ['cleanAll', 'startConfigServer', 'startEurekaService', 'startMicroservices'])
|
||||||
|
startConfigServer.mustRunAfter cleanAll
|
||||||
|
startEurekaService.mustRunAfter startConfigServer
|
||||||
|
startMicroservices.mustRunAfter startEurekaService
|
||||||
|
|
||||||
|
task buildConfigServer(dependsOn: [':config_server:build'])
|
||||||
|
task buildEurekaService(dependsOn: [':eureka-service:build'])
|
||||||
|
task buildMicroservices(dependsOn: [':events:build', ':teams:build', ':users:build'])
|
||||||
|
task stage(dependsOn: ['cleanAll', 'buildConfigServer', 'buildEurekaService', 'buildMicroservices'])
|
||||||
|
buildConfigServer.mustRunAfter cleanAll
|
||||||
|
buildEurekaService.mustRunAfter buildConfigServer
|
||||||
|
buildMicroservices.mustRunAfter buildEurekaService
|
||||||
|
|
||||||
|
|
Reference in New Issue