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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user