plugins {
	id "io.freefair.lombok" version "5.3.0"
}

apply plugin: 'io.spring.convention.spring-sample-boot'

description = "Spring Geode Sample demonstrating the use of Spring Boot Actuator with Apache Geode."

dependencies {

	compile project(":spring-geode-starter-actuator")

	compile(project(":spring-geode-starter-test")) {
		exclude group: "javax.servlet", module: "javax.servlet-api"
		exclude group: "org.apache.logging.log4j", module: "log4j-core"
	}

	compile "org.springframework.boot:spring-boot-starter-web"

}

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