Add starter
- New starter spring-statemachine-starter which simply add boot module and uses bom. - Fixes #458
This commit is contained in:
29
build.gradle
29
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 }
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Starter for spring-statemachine
|
||||
Reference in New Issue
Block a user