Configure the 'bootRun' Gradle Task to run the client for the Boot Actuator Sample.

Add a 'runServer' Gradle Task definition to run the server.
This commit is contained in:
John Blum
2020-05-15 14:04:03 -07:00
parent 56c9279ee7
commit be6928e781

View File

@@ -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"
}