rootProject.name = 'spring-statemachine'

include 'spring-statemachine-core'
include 'spring-statemachine-test'
include 'spring-statemachine-zookeeper'

include 'spring-statemachine-recipes'

include 'spring-statemachine-samples'
include 'spring-statemachine-samples:turnstile'
include 'spring-statemachine-samples:showcase'
include 'spring-statemachine-samples:cdplayer'
include 'spring-statemachine-samples:tasks'
include 'spring-statemachine-samples:washer'
include 'spring-statemachine-samples:zookeeper'
include 'spring-statemachine-samples:persist'
include 'spring-statemachine-samples:web'
include 'spring-statemachine-samples:scope'
include 'spring-statemachine-samples:security'

rootProject.children.find {
	if (it.name == 'spring-statemachine-recipes') {
		it.name = 'spring-statemachine-recipes-common'
	}
	if (it.name == 'spring-statemachine-samples') {
		it.name = 'spring-statemachine-samples-common'
		it.children.each {
			it.name = 'spring-statemachine-samples-' + it.name
		}
	}
}

