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

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

description = "Spring Geode Sample demonstrating Spring's Cache Abstraction using Apache Geode as the caching provider for Asynchronous Inline Caching."

dependencies {

	compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"

	implementation(project(":spring-geode-starter")) {
		exclude group: "com.sun.xml.bind", module: "jaxb-impl"
	}

	implementation "org.projectlombok:lombok"
	implementation "jakarta.persistence:jakarta.persistence-api"
	implementation "org.springframework.boot:spring-boot-starter-data-jpa"
	implementation "org.springframework.boot:spring-boot-starter-web"

	runtimeOnly "org.hsqldb:hsqldb"

	testImplementation project(":spring-geode-starter-test")

	testImplementation "org.awaitility:awaitility:$awaitilityVersion"
	testImplementation "org.springframework.boot:spring-boot-starter-test"

}

bootJar {
	mainClass = 'example.app.caching.inline.async.client.BootGeodeAsyncInlineCachingClientApplication'
}

bootRun {
	mainClass = 'example.app.caching.inline.async.client.BootGeodeAsyncInlineCachingClientApplication'
	args "--spring.profiles.active=peer-cache,queue-batch-size,server"
}
