Add base work for recipes

- Better state sync handling #35
- Adding first recipe for synching and
  persisting a state # 73
This commit is contained in:
Janne Valkealahti
2015-06-17 09:19:43 +01:00
parent 608183f2a3
commit 1bcdbd5ae0
22 changed files with 792 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ buildscript {
}
}
def recipeProjects() {
subprojects.findAll { project ->
project.name.contains('spring-statemachine-recipes') && project.name != 'spring-statemachine-recipes-common'
}
}
def sampleProjects() {
subprojects.findAll { project ->
project.name.contains('spring-statemachine-samples') && project.name != 'spring-statemachine-samples-common'
@@ -136,6 +142,22 @@ project('spring-statemachine-zookeeper') {
}
}
configure(recipeProjects()) {
dependencies {
compile project(":spring-statemachine-recipes-common")
testCompile "org.springframework:spring-test:$springVersion"
testCompile "org.hamcrest:hamcrest-core:$hamcrestVersion"
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
testCompile "junit:junit:$junitVersion"
}
}
project('spring-statemachine-recipes-common') {
dependencies {
compile project(":spring-statemachine-core")
}
}
configure(sampleProjects()) {
apply plugin: 'spring-boot'
configurations.archives.artifacts.removeAll { it.archiveTask.is jar }