diff --git a/build.gradle b/build.gradle index f0bc0250..a6357878 100644 --- a/build.gradle +++ b/build.gradle @@ -450,6 +450,35 @@ project('spring-statemachine-bom') { } +project('spring-statemachine-starter') { + description = "Spring Statemachine Starter" + dependencies { + compile project(":spring-statemachine-boot") + compile "org.springframework.boot:spring-boot-starter" + } + dependencyManagement { + imports { + mavenBom "org.springframework.statemachine:spring-statemachine-bom:${project.version}" + } + } + + install { + repositories.mavenInstaller { + pom.whenConfigured { + withXml { + asNode().children().first() + { + delegate.parent { + delegate.groupId('org.springframework.boot') + delegate.artifactId('spring-boot-starter-parent') + delegate.version("$springBootVersion") + } + } + } + } + } + } +} + configure(sampleProjects()) { apply plugin: 'org.springframework.boot' configurations.archives.artifacts.removeAll { it.archiveTask.is jar } diff --git a/settings.gradle b/settings.gradle index 8af75a66..a76af063 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,6 +11,7 @@ include 'spring-statemachine-build-tests' include 'spring-statemachine-recipes' include 'spring-statemachine-boot' include 'spring-statemachine-bom' +include 'spring-statemachine-starter' include 'spring-statemachine-samples' include 'spring-statemachine-samples:turnstile' diff --git a/spring-statemachine-starter/spring-statemachine-starter.txt b/spring-statemachine-starter/spring-statemachine-starter.txt new file mode 100644 index 00000000..2d32331c --- /dev/null +++ b/spring-statemachine-starter/spring-statemachine-starter.txt @@ -0,0 +1 @@ +Starter for spring-statemachine