From be6928e78129ad2d94a72fde53c40cdb9e66f7ec Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 15 May 2020 14:04:03 -0700 Subject: [PATCH] Configure the 'bootRun' Gradle Task to run the client for the Boot Actuator Sample. Add a 'runServer' Gradle Task definition to run the server. --- .../spring-geode-samples-boot-actuator.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spring-geode-samples/boot/actuator/spring-geode-samples-boot-actuator.gradle b/spring-geode-samples/boot/actuator/spring-geode-samples-boot-actuator.gradle index 1c46f386..2bc1de02 100644 --- a/spring-geode-samples/boot/actuator/spring-geode-samples-boot-actuator.gradle +++ b/spring-geode-samples/boot/actuator/spring-geode-samples-boot-actuator.gradle @@ -19,6 +19,17 @@ dependencies { } +task runServer(type: JavaExec) { + classpath = sourceSets.main.runtimeClasspath + jvmArgs '-Dspring.profiles.active=server' + main = "example.app.temp.geode.server.BootGeodeServerApplication" +} + bootJar { mainClassName = 'example.app.temp.geode.client.BootGeodeClientApplication' } + +bootRun { + main = 'example.app.temp.geode.client.BootGeodeClientApplication' + args "--spring.profiles.active=client", "--spring.data.gemfire.management.use-http=false" +}