Add Example Code demonstrating how to get started with SBDG.

Resolves gh-54.
This commit is contained in:
John Blum
2019-09-16 19:17:11 -07:00
parent 44b6b27257
commit 730110dc55
8 changed files with 322 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "io.freefair.lombok" version "3.2.1"
}
apply plugin: 'io.spring.convention.spring-sample-boot'
description = "Spring Geode Sample for Getting Started with Spring Boot for Apache Geode quickly, easily and reliably."
dependencies {
compile project(":spring-geode-starter")
compile project(":spring-geode-starter-test")
compile "org.assertj:assertj-core"
compile "org.projectlombok:lombok"
compile "org.springframework.boot:spring-boot-starter-web"
testCompile "org.springframework.boot:spring-boot-starter-test"
}
processResources {
eachFile { file ->
if (!file.name.endsWith(".jks")) {
file.filter ReplaceTokens, tokens: [
'project-dir' : rootProject.projectDir.path,
'project-version' : project.version,
'samples-dir' : rootProject.projectDir.path + '/spring-geode-samples'
]
}
}
}