Add starter

- New starter spring-statemachine-starter which simply
  add boot module and uses bom.
- Fixes #458
This commit is contained in:
jvalkeal
2018-02-11 14:20:13 +02:00
parent 328a2e9161
commit a988410ab5
3 changed files with 31 additions and 0 deletions

View File

@@ -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 }

View File

@@ -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'

View File

@@ -0,0 +1 @@
Starter for spring-statemachine