From 8f50d28894c004998ede757376b576736c3a0fd7 Mon Sep 17 00:00:00 2001 From: esensar Date: Sun, 16 Apr 2017 18:59:49 +0200 Subject: [PATCH] Add tasks for running and building all modules --- build.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 0314bdd..004b3f5 100644 --- a/build.gradle +++ b/build.gradle @@ -8,4 +8,22 @@ buildscript { dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } -} \ No newline at end of file +} + +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 +