Upgrade gradle 7.6.1
- Switch propdeps-plugin to custom OptionalDependenciesPlugin - Switch io.spring.dependency-management with custom spring-statemachine-platform project - Use proper gradle publication system - Switch to testfixtures from a custom tests jar - Migrate to spring-asciidoctor-backends - Generic changes to bom/starter create as we now use publications
This commit is contained in:
495
build.gradle
495
build.gradle
@@ -13,7 +13,7 @@ buildscript {
|
|||||||
eclipseEmfEcoreVersion = '2.11.1-v20150805-0538'
|
eclipseEmfEcoreVersion = '2.11.1-v20150805-0538'
|
||||||
eclipseUml2UmlVersion = '5.0.0-v20140602-0749'
|
eclipseUml2UmlVersion = '5.0.0-v20140602-0749'
|
||||||
curatorVersion = '2.11.1'
|
curatorVersion = '2.11.1'
|
||||||
docResourcesVersion = '0.2.5'
|
springAsciidoctorBackends = '0.0.5'
|
||||||
awaitilityVersion = '3.1.6'
|
awaitilityVersion = '3.1.6'
|
||||||
reactorBlockHoundVersion = '1.0.4.RELEASE'
|
reactorBlockHoundVersion = '1.0.4.RELEASE'
|
||||||
}
|
}
|
||||||
@@ -22,14 +22,21 @@ buildscript {
|
|||||||
maven { url 'https://repo.spring.io/plugins-release' }
|
maven { url 'https://repo.spring.io/plugins-release' }
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("io.spring.gradle:propdeps-plugin:0.0.8")
|
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.asciidoctor.jvm.convert' version '3.1.0'
|
id 'org.asciidoctor.jvm.convert' version '3.3.2'
|
||||||
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
|
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
|
||||||
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
moduleProjects = subprojects.findAll {
|
||||||
|
it.name.startsWith("spring-statemachine-") && !it.name.contains("samples") && !it.name.contains("-bom") && !it.name.contains("-platform")
|
||||||
|
}
|
||||||
|
javaProjects = subprojects - project(":spring-statemachine-bom") - project(":spring-statemachine-platform")
|
||||||
|
javaProjectsAndRoot = javaProjects + rootProject
|
||||||
}
|
}
|
||||||
|
|
||||||
def recipeProjects() {
|
def recipeProjects() {
|
||||||
@@ -46,25 +53,17 @@ def sampleProjects() {
|
|||||||
|
|
||||||
def getResolvedVersionOf(dependency) {
|
def getResolvedVersionOf(dependency) {
|
||||||
// used for resolving version to docs
|
// used for resolving version to docs
|
||||||
return configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.findAll { it.moduleName == dependency }[0].moduleVersion
|
return configurations.compileClasspath.resolvedConfiguration.firstLevelModuleDependencies.findAll { it.moduleName == dependency }[0].moduleVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(allprojects) {
|
configure(javaProjectsAndRoot) {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'io.spring.dependency-management'
|
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'propdeps'
|
apply plugin: 'org.springframework.statemachine.optional-dependencies'
|
||||||
|
|
||||||
if (System.env.TRAVIS == 'true') {
|
tasks.withType(GenerateModuleMetadata) {
|
||||||
tasks.withType(GroovyCompile) {
|
enabled = false
|
||||||
groovyOptions.fork = false
|
|
||||||
}
|
|
||||||
tasks.withType(Test) {
|
|
||||||
maxParallelForks = 1
|
|
||||||
minHeapSize = '256m'
|
|
||||||
maxHeapSize = '384m'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
@@ -88,27 +87,17 @@ configure(allprojects) {
|
|||||||
maven { url 'https://repo.spring.io/libs-milestone' }
|
maven { url 'https://repo.spring.io/libs-milestone' }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencyManagement {
|
configurations {
|
||||||
imports {
|
dependencyManagement {
|
||||||
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
|
canBeConsumed = false
|
||||||
}
|
canBeResolved = false
|
||||||
dependencies {
|
visible = false
|
||||||
dependency "log4j:log4j:$log4jVersion"
|
|
||||||
dependency "org.eclipse.persistence:javax.persistence:$eclipsePersistenceVersion"
|
|
||||||
dependency "com.esotericsoftware:kryo-shaded:$kryoVersion"
|
|
||||||
dependency "org.springframework.shell:spring-shell:$springShellVersion"
|
|
||||||
dependency "org.eclipse.uml2:uml:$eclipseUml2UmlVersion"
|
|
||||||
dependency "org.eclipse.uml2:types:$eclipseUml2TypesVersion"
|
|
||||||
dependency "org.eclipse.uml2:common:$eclipseUml2CommonVersion"
|
|
||||||
dependency "org.eclipse.emf:org.eclipse.emf.ecore.xmi:$eclipseEmfXmiVersion"
|
|
||||||
dependency "org.eclipse.emf:org.eclipse.emf.ecore:$eclipseEmfEcoreVersion"
|
|
||||||
dependency "org.eclipse.emf:org.eclipse.emf.common:$eclipseEmfCommonVersion"
|
|
||||||
dependency "org.apache.curator:curator-recipes:$curatorVersion"
|
|
||||||
dependency "org.apache.curator:curator-test:$curatorVersion"
|
|
||||||
dependency "org.awaitility:awaitility:$awaitilityVersion"
|
|
||||||
dependency "io.projectreactor.tools:blockhound:$reactorBlockHoundVersion"
|
|
||||||
dependency "io.projectreactor.tools:blockhound-junit-platform:$reactorBlockHoundVersion"
|
|
||||||
}
|
}
|
||||||
|
matching { it.name.endsWith("Classpath") }.all { it.extendsFrom(dependencyManagement) }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
dependencyManagement(enforcedPlatform(dependencies.project(path: ":spring-statemachine-platform")))
|
||||||
}
|
}
|
||||||
|
|
||||||
task integrationTest(type: Test) {
|
task integrationTest(type: Test) {
|
||||||
@@ -142,17 +131,17 @@ configure(allprojects) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(subprojects) { subproject ->
|
configure(javaProjects) { subproject ->
|
||||||
apply from: "${rootProject.projectDir}/publish-maven.gradle"
|
apply from: "$rootDir/gradle/publications.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("io.projectreactor.tools:blockhound")
|
testImplementation("io.projectreactor.tools:blockhound")
|
||||||
testCompile("org.springframework.boot:spring-boot-starter-test")
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||||
testRuntime("org.junit.jupiter:junit-jupiter-engine")
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
||||||
if (project.hasProperty('statemachineBlockHound') && statemachineBlockHound.toBoolean()) {
|
if (project.hasProperty('statemachineBlockHound') && statemachineBlockHound.toBoolean()) {
|
||||||
testRuntime("org.junit.platform:junit-platform-launcher")
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||||
testRuntime("io.projectreactor.tools:blockhound-junit-platform")
|
testRuntimeOnly("io.projectreactor.tools:blockhound-junit-platform")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,56 +182,45 @@ configure(subprojects) { subproject ->
|
|||||||
from javadoc
|
from javadoc
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
publishing {
|
||||||
archives sourcesJar
|
publications {
|
||||||
archives javadocJar
|
mavenJava(MavenPublication) {
|
||||||
}
|
from components.java
|
||||||
|
artifact sourcesJar
|
||||||
eclipse {
|
artifact javadocJar
|
||||||
classpath {
|
}
|
||||||
plusConfigurations += [ configurations.optional ]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-core') {
|
project('spring-statemachine-core') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = 'Spring State Machine Core'
|
description = 'Spring State Machine Core'
|
||||||
|
|
||||||
configurations {
|
|
||||||
testArtifacts
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.springframework:spring-tx'
|
api 'org.springframework:spring-tx'
|
||||||
compile 'org.springframework:spring-messaging'
|
api 'org.springframework:spring-messaging'
|
||||||
compile 'io.projectreactor:reactor-core'
|
api 'io.projectreactor:reactor-core'
|
||||||
optional 'org.springframework.security:spring-security-core'
|
optional 'org.springframework.security:spring-security-core'
|
||||||
|
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile 'org.springframework:spring-web'
|
testImplementation 'org.springframework:spring-web'
|
||||||
testCompile 'org.springframework:spring-webmvc'
|
testImplementation 'org.springframework:spring-webmvc'
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.apache.tomcat.embed:tomcat-embed-core'
|
testFixturesImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile('org.mockito:mockito-core') { dep ->
|
testImplementation 'org.apache.tomcat.embed:tomcat-embed-core'
|
||||||
|
testImplementation('org.mockito:mockito-core') { dep ->
|
||||||
exclude group: 'org.hamcrest'
|
exclude group: 'org.hamcrest'
|
||||||
}
|
}
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
testCompile 'org.assertj:assertj-core'
|
testImplementation 'org.assertj:assertj-core'
|
||||||
testCompile 'org.springframework.security:spring-security-config'
|
testFixturesImplementation 'org.assertj:assertj-core'
|
||||||
testCompile 'org.springframework.security:spring-security-test'
|
testImplementation 'org.springframework.security:spring-security-config'
|
||||||
testCompile 'javax.servlet:javax.servlet-api'
|
testImplementation 'org.springframework.security:spring-security-test'
|
||||||
testCompile 'org.awaitility:awaitility'
|
testImplementation 'javax.servlet:javax.servlet-api'
|
||||||
testRuntime 'org.apache.logging.log4j:log4j-core'
|
testImplementation 'org.awaitility:awaitility'
|
||||||
}
|
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
|
||||||
|
|
||||||
task testJar(type: Jar) {
|
|
||||||
classifier = 'tests'
|
|
||||||
from sourceSets.test.output
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts {
|
|
||||||
testArtifacts testJar
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,10 +228,10 @@ project('spring-statemachine-autoconfigure') {
|
|||||||
description = 'Spring State Machine Boot Autoconfigure'
|
description = 'Spring State Machine Boot Autoconfigure'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile 'org.springframework.boot:spring-boot-autoconfigure'
|
api 'org.springframework.boot:spring-boot-autoconfigure'
|
||||||
compile 'org.springframework.boot:spring-boot-actuator-autoconfigure'
|
api 'org.springframework.boot:spring-boot-actuator-autoconfigure'
|
||||||
compile 'org.springframework.boot:spring-boot-actuator'
|
api 'org.springframework.boot:spring-boot-actuator'
|
||||||
optional project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
optional project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
||||||
optional project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
optional project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
||||||
optional project(':spring-statemachine-data-common:spring-statemachine-data-mongodb')
|
optional project(':spring-statemachine-data-common:spring-statemachine-data-mongodb')
|
||||||
@@ -263,32 +241,33 @@ project('spring-statemachine-autoconfigure') {
|
|||||||
optional 'org.springframework.boot:spring-boot-starter-data-jpa'
|
optional 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||||
optional 'org.springframework.boot:spring-boot-starter-data-redis'
|
optional 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||||
optional 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
optional 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
||||||
testRuntime 'com.h2database:h2'
|
testRuntimeOnly 'com.h2database:h2'
|
||||||
testCompile 'org.springframework.boot:spring-boot-test'
|
testImplementation 'org.springframework.boot:spring-boot-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-test') {
|
project('spring-statemachine-test') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = "Spring State Machine Test"
|
description = "Spring State Machine Test"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.springframework:spring-context'
|
api 'org.springframework:spring-context'
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile 'org.springframework:spring-test'
|
api 'org.springframework:spring-test'
|
||||||
compile 'org.hamcrest:hamcrest-core'
|
api 'org.hamcrest:hamcrest-core'
|
||||||
compile 'org.hamcrest:hamcrest-library'
|
api 'org.hamcrest:hamcrest-library'
|
||||||
compile 'org.assertj:assertj-core'
|
api 'org.assertj:assertj-core'
|
||||||
optional 'junit:junit'
|
optional 'junit:junit'
|
||||||
optional 'org.junit.jupiter:junit-jupiter-api'
|
optional 'org.junit.jupiter:junit-jupiter-api'
|
||||||
optional 'org.junit.vintage:junit-vintage-engine'
|
optional 'org.junit.vintage:junit-vintage-engine'
|
||||||
testCompile('org.mockito:mockito-core') { dep ->
|
testImplementation('org.mockito:mockito-core') { dep ->
|
||||||
exclude group: 'org.hamcrest'
|
exclude group: 'org.hamcrest'
|
||||||
}
|
}
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,17 +275,17 @@ project('spring-statemachine-kryo') {
|
|||||||
description = 'Spring State Machine Kryo'
|
description = 'Spring State Machine Kryo'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile 'com.esotericsoftware:kryo-shaded'
|
api 'com.esotericsoftware:kryo-shaded'
|
||||||
|
|
||||||
testCompile (project(':spring-statemachine-test')) { dep ->
|
testImplementation (project(':spring-statemachine-test')) { dep ->
|
||||||
exclude group: 'junit', module: 'junit'
|
exclude group: 'junit', module: 'junit'
|
||||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
}
|
}
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
testRuntime 'org.apache.logging.log4j:log4j-core'
|
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,51 +293,48 @@ project('spring-statemachine-zookeeper') {
|
|||||||
description = 'Spring State Machine Zookeeper'
|
description = 'Spring State Machine Zookeeper'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.springframework:spring-context'
|
api 'org.springframework:spring-context'
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile project(':spring-statemachine-kryo')
|
api project(':spring-statemachine-kryo')
|
||||||
compile 'org.apache.curator:curator-recipes'
|
api 'org.apache.curator:curator-recipes'
|
||||||
// github.com/spring-gradle-plugins/dependency-management-plugin/issues/136
|
// github.com/spring-gradle-plugins/dependency-management-plugin/issues/136
|
||||||
runtime 'log4j:log4j'
|
compileOnly 'log4j:log4j'
|
||||||
|
|
||||||
testCompile (project(':spring-statemachine-test')) { dep ->
|
testImplementation (project(':spring-statemachine-test')) { dep ->
|
||||||
exclude group: 'junit', module: 'junit'
|
exclude group: 'junit', module: 'junit'
|
||||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
}
|
}
|
||||||
testCompile 'org.apache.curator:curator-test'
|
testImplementation 'org.apache.curator:curator-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
testRuntime 'org.apache.logging.log4j:log4j-core'
|
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-data-common') {
|
project('spring-statemachine-data-common') {
|
||||||
configurations {
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
testArtifacts.extendsFrom testRuntime
|
|
||||||
}
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile project(':spring-statemachine-kryo')
|
api project(':spring-statemachine-kryo')
|
||||||
compile 'org.springframework.data:spring-data-commons'
|
api 'org.springframework.data:spring-data-commons'
|
||||||
optional 'org.springframework.security:spring-security-core'
|
optional 'org.springframework.security:spring-security-core'
|
||||||
compile 'com.fasterxml.jackson.core:jackson-core'
|
api 'com.fasterxml.jackson.core:jackson-core'
|
||||||
compile 'com.fasterxml.jackson.core:jackson-databind'
|
api 'com.fasterxml.jackson.core:jackson-databind'
|
||||||
testCompile (project(':spring-statemachine-test')) { dep ->
|
testImplementation (project(':spring-statemachine-test')) { dep ->
|
||||||
exclude group: 'junit', module: 'junit'
|
exclude group: 'junit', module: 'junit'
|
||||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
}
|
}
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testFixturesImplementation (project(':spring-statemachine-test')) { dep ->
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
exclude group: 'junit', module: 'junit'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter-test'
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-web'
|
}
|
||||||
}
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
task testJar(type: Jar) {
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
classifier = 'tests'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
from sourceSets.test.output
|
testFixturesImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
}
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
|
||||||
artifacts {
|
|
||||||
testArtifacts testJar
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -366,30 +342,31 @@ project('spring-statemachine-cluster') {
|
|||||||
description = 'Spring State Machine Cluster'
|
description = 'Spring State Machine Cluster'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-zookeeper')
|
api project(':spring-statemachine-zookeeper')
|
||||||
compile 'org.springframework.integration:spring-integration-zookeeper'
|
api 'org.springframework.integration:spring-integration-zookeeper'
|
||||||
|
|
||||||
testCompile (project(':spring-statemachine-test')) { dep ->
|
testImplementation (project(':spring-statemachine-test')) { dep ->
|
||||||
exclude group: 'junit', module: 'junit'
|
exclude group: 'junit', module: 'junit'
|
||||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
}
|
}
|
||||||
testCompile 'org.apache.curator:curator-test'
|
testImplementation 'org.apache.curator:curator-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
testRuntime 'org.apache.logging.log4j:log4j-core'
|
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-uml') {
|
project('spring-statemachine-uml') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = 'Spring State Machine Uml'
|
description = 'Spring State Machine Uml'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
optional 'org.springframework.security:spring-security-core'
|
optional 'org.springframework.security:spring-security-core'
|
||||||
|
|
||||||
// these eclipse maven deps are simply broken
|
// these eclipse maven deps are simply broken
|
||||||
compile('org.eclipse.uml2:uml') { dep ->
|
api('org.eclipse.uml2:uml') { dep ->
|
||||||
exclude group: 'org.eclipse.core', module: 'runtime'
|
exclude group: 'org.eclipse.core', module: 'runtime'
|
||||||
exclude group: 'org.eclipse.emf', module: 'ecore'
|
exclude group: 'org.eclipse.emf', module: 'ecore'
|
||||||
exclude group: 'org.eclipse.emf.ecore', module: 'xmi'
|
exclude group: 'org.eclipse.emf.ecore', module: 'xmi'
|
||||||
@@ -397,111 +374,101 @@ project('spring-statemachine-uml') {
|
|||||||
exclude group: 'org.eclipse.uml2', module: 'common'
|
exclude group: 'org.eclipse.uml2', module: 'common'
|
||||||
exclude group: 'org.eclipse.uml2', module: 'types'
|
exclude group: 'org.eclipse.uml2', module: 'types'
|
||||||
}
|
}
|
||||||
compile('org.eclipse.uml2:types') { dep ->
|
api('org.eclipse.uml2:types') { dep ->
|
||||||
exclude group: 'org.eclipse.core', module: 'runtime'
|
exclude group: 'org.eclipse.core', module: 'runtime'
|
||||||
exclude group: 'org.eclipse.emf', module: 'ecore'
|
exclude group: 'org.eclipse.emf', module: 'ecore'
|
||||||
exclude group: 'org.eclipse.uml2', module: 'common'
|
exclude group: 'org.eclipse.uml2', module: 'common'
|
||||||
}
|
}
|
||||||
compile('org.eclipse.uml2:common') { dep ->
|
api('org.eclipse.uml2:common') { dep ->
|
||||||
exclude group: 'org.eclipse.core', module: 'runtime'
|
exclude group: 'org.eclipse.core', module: 'runtime'
|
||||||
exclude group: 'org.eclipse.emf', module: 'ecore'
|
exclude group: 'org.eclipse.emf', module: 'ecore'
|
||||||
}
|
}
|
||||||
compile 'org.eclipse.emf:org.eclipse.emf.ecore.xmi'
|
api 'org.eclipse.emf:org.eclipse.emf.ecore.xmi'
|
||||||
compile 'org.eclipse.emf:org.eclipse.emf.ecore'
|
api 'org.eclipse.emf:org.eclipse.emf.ecore'
|
||||||
compile 'org.eclipse.emf:org.eclipse.emf.common'
|
api 'org.eclipse.emf:org.eclipse.emf.common'
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
testCompile 'org.awaitility:awaitility'
|
testImplementation 'org.awaitility:awaitility'
|
||||||
testRuntime 'org.apache.logging.log4j:log4j-core'
|
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-build-tests') {
|
project('spring-statemachine-build-tests') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = 'Spring State Machine Build Tests'
|
description = 'Spring State Machine Build Tests'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile project(':spring-statemachine-uml')
|
testImplementation project(':spring-statemachine-uml')
|
||||||
testCompile project(':spring-statemachine-test')
|
testImplementation project(':spring-statemachine-test')
|
||||||
testCompile project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
testImplementation project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
||||||
testCompile project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
testImplementation project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
||||||
testCompile project(':spring-statemachine-data-common:spring-statemachine-data-mongodb')
|
testImplementation project(':spring-statemachine-data-common:spring-statemachine-data-mongodb')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.apache.commons:commons-pool2'
|
testImplementation 'org.apache.commons:commons-pool2'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-data-redis'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||||
testRuntime 'redis.clients:jedis'
|
testRuntimeOnly 'redis.clients:jedis'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter-data-jpa'
|
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||||
testCompile 'com.h2database:h2'
|
testImplementation 'com.h2database:h2'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter'
|
testImplementation 'org.springframework.boot:spring-boot-starter'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(recipeProjects()) {
|
configure(recipeProjects()) {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-recipes-common')
|
api project(':spring-statemachine-recipes-common')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-recipes-common') {
|
project('spring-statemachine-recipes-common') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.springframework:spring-context'
|
api 'org.springframework:spring-context'
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-bom') {
|
project('spring-statemachine-bom') {
|
||||||
|
apply plugin: 'java-platform'
|
||||||
|
apply from: "$rootDir/gradle/publications.gradle"
|
||||||
description = 'Spring Statemachine (Bill of Materials)'
|
description = 'Spring Statemachine (Bill of Materials)'
|
||||||
|
group = 'org.springframework.statemachine'
|
||||||
|
|
||||||
dependencyManagement {
|
tasks.withType(GenerateModuleMetadata) {
|
||||||
generatedPomCustomization {
|
enabled = false
|
||||||
enabled = false
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
constraints {
|
||||||
|
parent.moduleProjects.sort { "$it.name" }.each {
|
||||||
|
api it
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations.archives.artifacts.clear()
|
publishing {
|
||||||
artifacts {
|
publications {
|
||||||
// work around GRADLE-2406 by attaching text artifact
|
mavenJava(MavenPublication) {
|
||||||
archives(file('spring-statemachine-bom.txt'))
|
artifactId = 'spring-statemachine-bom'
|
||||||
}
|
from components.javaPlatform
|
||||||
|
|
||||||
install {
|
|
||||||
repositories.mavenInstaller {
|
|
||||||
pom.whenConfigured {
|
|
||||||
packaging = 'pom'
|
|
||||||
withXml {
|
|
||||||
asNode().children().last() + {
|
|
||||||
delegate.dependencyManagement {
|
|
||||||
delegate.dependencies {
|
|
||||||
parent.subprojects.sort { "$it.name" }.each { p ->
|
|
||||||
if (!p.name.contains('spring-statemachine-samples') &&
|
|
||||||
!p.name.contains('spring-statemachine-build-tests') &&
|
|
||||||
p != project) {
|
|
||||||
delegate.dependency {
|
|
||||||
delegate.groupId(p.group)
|
|
||||||
delegate.artifactId(p.name)
|
|
||||||
delegate.version(p.version)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -511,24 +478,8 @@ project('spring-statemachine-bom') {
|
|||||||
project('spring-statemachine-starter') {
|
project('spring-statemachine-starter') {
|
||||||
description = 'Spring Statemachine Starter'
|
description = 'Spring Statemachine Starter'
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-autoconfigure')
|
api project(':spring-statemachine-autoconfigure')
|
||||||
compile 'org.springframework.boot:spring-boot-starter'
|
api 'org.springframework.boot:spring-boot-starter'
|
||||||
}
|
|
||||||
|
|
||||||
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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -539,19 +490,19 @@ configure(sampleProjects()) {
|
|||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile 'org.springframework:spring-context-support'
|
api 'org.springframework:spring-context-support'
|
||||||
testCompile('org.mockito:mockito-core') { dep ->
|
testImplementation('org.mockito:mockito-core') { dep ->
|
||||||
exclude group: 'org.hamcrest'
|
exclude group: 'org.hamcrest'
|
||||||
}
|
}
|
||||||
testCompile (project(':spring-statemachine-test')) { dep ->
|
testImplementation (project(':spring-statemachine-test')) { dep ->
|
||||||
exclude group: 'junit', module: 'junit'
|
exclude group: 'junit', module: 'junit'
|
||||||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
}
|
}
|
||||||
testCompile 'org.springframework.boot:spring-boot-test'
|
testImplementation 'org.springframework.boot:spring-boot-test'
|
||||||
testCompile 'org.springframework:spring-test'
|
testImplementation 'org.springframework:spring-test'
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-api")
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
||||||
testCompile("org.junit.jupiter:junit-jupiter-engine")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine")
|
||||||
}
|
}
|
||||||
build.dependsOn bootJar
|
build.dependsOn bootJar
|
||||||
|
|
||||||
@@ -561,15 +512,18 @@ configure(sampleProjects()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-common') {
|
project('spring-statemachine-samples-common') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-core')
|
api project(':spring-statemachine-core')
|
||||||
compile 'org.springframework.shell:spring-shell'
|
api 'org.springframework.shell:spring-shell'
|
||||||
compile 'org.springframework.boot:spring-boot-starter'
|
api 'org.springframework.boot:spring-boot-starter'
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(rootProject) {
|
configure(rootProject) {
|
||||||
|
apply from: "$rootDir/gradle/publications.gradle"
|
||||||
description = 'Spring State Machine'
|
description = 'Spring State Machine'
|
||||||
|
|
||||||
pluginManager.withPlugin('com.jfrog.artifactory') {
|
pluginManager.withPlugin('com.jfrog.artifactory') {
|
||||||
@@ -588,8 +542,8 @@ configure(rootProject) {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// just used to get version into docs
|
// just used to get version into docs
|
||||||
compile 'org.springframework:spring-core'
|
api 'org.springframework:spring-core'
|
||||||
compile 'org.springframework.boot:spring-boot'
|
api 'org.springframework.boot:spring-boot'
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't publish the default jar for the root project
|
// don't publish the default jar for the root project
|
||||||
@@ -604,18 +558,18 @@ configure(rootProject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task prepareAsciidocBuild(type: Sync) {
|
task prepareAsciidocBuild(type: Sync) {
|
||||||
dependsOn configurations.docs
|
|
||||||
// copy doc resources
|
|
||||||
from {
|
|
||||||
configurations.docs.collect { zipTree(it) }
|
|
||||||
}
|
|
||||||
// and doc sources
|
// and doc sources
|
||||||
from 'docs/src/reference/asciidoc/'
|
from 'docs/src/reference/asciidoc/'
|
||||||
// to a build directory of your choice
|
// to a build directory of your choice
|
||||||
into "$buildDir/asciidoc/assemble"
|
into "$buildDir/asciidoc/assemble"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
asciidoctorj {
|
||||||
|
version = '2.4.3'
|
||||||
|
}
|
||||||
|
|
||||||
asciidoctor {
|
asciidoctor {
|
||||||
|
configurations "docs"
|
||||||
dependsOn 'prepareAsciidocBuild'
|
dependsOn 'prepareAsciidocBuild'
|
||||||
dependsOn 'copyDocsSamples'
|
dependsOn 'copyDocsSamples'
|
||||||
baseDirFollowsSourceFile()
|
baseDirFollowsSourceFile()
|
||||||
@@ -628,6 +582,9 @@ configure(rootProject) {
|
|||||||
include 'images/*', 'css/**', 'js/**', 'samples/**'
|
include 'images/*', 'css/**', 'js/**', 'samples/**'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
outputOptions {
|
||||||
|
backends "spring-html"
|
||||||
|
}
|
||||||
options doctype: 'book', eruby: 'erubis'
|
options doctype: 'book', eruby: 'erubis'
|
||||||
attributes \
|
attributes \
|
||||||
'docinfo': 'shared',
|
'docinfo': 'shared',
|
||||||
@@ -647,7 +604,6 @@ configure(rootProject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
asciidoctorPdf {
|
asciidoctorPdf {
|
||||||
dependsOn 'prepareAsciidocBuild'
|
|
||||||
dependsOn 'copyDocsSamples'
|
dependsOn 'copyDocsSamples'
|
||||||
baseDirFollowsSourceFile()
|
baseDirFollowsSourceFile()
|
||||||
sourceDir "$buildDir/asciidoc/assemble"
|
sourceDir "$buildDir/asciidoc/assemble"
|
||||||
@@ -663,7 +619,7 @@ configure(rootProject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies { // for integration tests
|
dependencies { // for integration tests
|
||||||
docs "io.spring.docresources:spring-doc-resources:${docResourcesVersion}@zip"
|
docs "io.spring.asciidoctor.backends:spring-asciidoctor-backends:${springAsciidoctorBackends}"
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyDocsSamples(type: Copy) {
|
task copyDocsSamples(type: Copy) {
|
||||||
@@ -711,7 +667,7 @@ configure(rootProject) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// disable javadocs for samples
|
// disable javadocs for samples
|
||||||
source subprojects
|
source javaProjects
|
||||||
.findAll { project ->
|
.findAll { project ->
|
||||||
!project.name.contains('samples')
|
!project.name.contains('samples')
|
||||||
}
|
}
|
||||||
@@ -720,7 +676,7 @@ configure(rootProject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
destinationDir = new File(buildDir, "api")
|
destinationDir = new File(buildDir, "api")
|
||||||
classpath = files(subprojects.collect { project ->
|
classpath = files(javaProjects.collect { project ->
|
||||||
project.sourceSets.main.compileClasspath
|
project.sourceSets.main.compileClasspath
|
||||||
})
|
})
|
||||||
maxMemory = '1024m'
|
maxMemory = '1024m'
|
||||||
@@ -770,7 +726,7 @@ configure(rootProject) {
|
|||||||
into "${baseDir}/docs"
|
into "${baseDir}/docs"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects.each { subproject ->
|
javaProjects.each { subproject ->
|
||||||
into ("${baseDir}/libs") {
|
into ("${baseDir}/libs") {
|
||||||
from subproject.jar
|
from subproject.jar
|
||||||
if (subproject.tasks.findByPath('sourcesJar')) {
|
if (subproject.tasks.findByPath('sourcesJar')) {
|
||||||
@@ -838,8 +794,13 @@ configure(rootProject) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
publishing {
|
||||||
archives docsZip
|
publications {
|
||||||
archives distZip
|
mavenJava(MavenPublication) {
|
||||||
|
artifact docsZip
|
||||||
|
artifact distZip
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
17
buildSrc/build.gradle
Normal file
17
buildSrc/build.gradle
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
plugins {
|
||||||
|
id 'java-gradle-plugin'
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
|
||||||
|
gradlePlugin {
|
||||||
|
plugins {
|
||||||
|
optionalDependenciesPlugin {
|
||||||
|
id = "org.springframework.statemachine.optional-dependencies"
|
||||||
|
implementationClass = "org.springframework.statemachine.gradle.OptionalDependenciesPlugin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2023 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
package org.springframework.statemachine.gradle;
|
||||||
|
|
||||||
|
import org.gradle.api.Plugin;
|
||||||
|
import org.gradle.api.Project;
|
||||||
|
import org.gradle.api.artifacts.Configuration;
|
||||||
|
import org.gradle.api.plugins.JavaPlugin;
|
||||||
|
import org.gradle.api.plugins.JavaPluginExtension;
|
||||||
|
import org.gradle.api.tasks.SourceSetContainer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A {@code Plugin} that adds support for Maven-style optional dependencies.
|
||||||
|
* Creates a new
|
||||||
|
* {@code optional} configuration. The {@code optional} configuration is part of
|
||||||
|
* the
|
||||||
|
* project's compile and runtime classpaths but does not affect the classpath of
|
||||||
|
* dependent projects.
|
||||||
|
*
|
||||||
|
* @author Janne Valkealahti
|
||||||
|
*/
|
||||||
|
public class OptionalDependenciesPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the {@code optional} configuration.
|
||||||
|
*/
|
||||||
|
public static final String OPTIONAL_CONFIGURATION_NAME = "optional";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply(Project project) {
|
||||||
|
Configuration optional = project.getConfigurations().create("optional");
|
||||||
|
optional.setCanBeConsumed(false);
|
||||||
|
optional.setCanBeResolved(false);
|
||||||
|
project.getPlugins().withType(JavaPlugin.class, (javaPlugin) -> {
|
||||||
|
SourceSetContainer sourceSets = project.getExtensions().getByType(JavaPluginExtension.class)
|
||||||
|
.getSourceSets();
|
||||||
|
sourceSets.all((sourceSet) -> {
|
||||||
|
project.getConfigurations().getByName(sourceSet.getCompileClasspathConfigurationName())
|
||||||
|
.extendsFrom(optional);
|
||||||
|
project.getConfigurations().getByName(sourceSet.getRuntimeClasspathConfigurationName())
|
||||||
|
.extendsFrom(optional);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
16
gradle/java-test-fixtures.gradle
Normal file
16
gradle/java-test-fixtures.gradle
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apply plugin: 'java-test-fixtures'
|
||||||
|
|
||||||
|
compileTestFixturesJava {
|
||||||
|
sourceCompatibility = 1.8
|
||||||
|
targetCompatibility = 1.8
|
||||||
|
}
|
||||||
|
|
||||||
|
eclipse.classpath {
|
||||||
|
file.whenMerged { classpath ->
|
||||||
|
classpath.entries.findAll { entry -> entry instanceof org.gradle.plugins.ide.eclipse.model.ProjectDependency && entry.entryAttributes.test }
|
||||||
|
.each { it.entryAttributes['test'] = 'false' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
components.java.withVariantsFromConfiguration(configurations.testFixturesApiElements) { skip() }
|
||||||
|
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() }
|
||||||
50
gradle/publications.gradle
Normal file
50
gradle/publications.gradle
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
apply plugin: "maven-publish"
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
pom {
|
||||||
|
afterEvaluate {
|
||||||
|
name = project.description
|
||||||
|
description = project.description
|
||||||
|
}
|
||||||
|
url = "https://github.com/spring-projects/spring-statemachine"
|
||||||
|
organization {
|
||||||
|
name = "Spring IO"
|
||||||
|
url = "https://spring.io/spring-statemachine"
|
||||||
|
}
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name = "Apache License, Version 2.0"
|
||||||
|
url = "https://www.apache.org/licenses/LICENSE-2.0"
|
||||||
|
distribution = "repo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
url = "https://github.com/spring-projects/spring-statemachine"
|
||||||
|
connection = "scm:git:git://github.com/spring-projects/spring-statemachine"
|
||||||
|
developerConnection = "scm:git:git://github.com/spring-projects/spring-statemachine"
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = 'jvalkeal'
|
||||||
|
name = 'Janne Valkealahti'
|
||||||
|
email = 'janne.valkealahti@gmail.com'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
issueManagement {
|
||||||
|
system = "GitHub"
|
||||||
|
url = "https://github.com/spring-projects/spring-statemachine/issues"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
versionMapping {
|
||||||
|
usage('java-api') {
|
||||||
|
fromResolutionResult()
|
||||||
|
}
|
||||||
|
usage('java-runtime') {
|
||||||
|
fromResolutionResult()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
rootProject.name = 'spring-statemachine'
|
rootProject.name = 'spring-statemachine'
|
||||||
|
|
||||||
|
include 'spring-statemachine-platform'
|
||||||
include 'spring-statemachine-core'
|
include 'spring-statemachine-core'
|
||||||
include 'spring-statemachine-test'
|
include 'spring-statemachine-test'
|
||||||
include 'spring-statemachine-kryo'
|
include 'spring-statemachine-kryo'
|
||||||
|
|||||||
@@ -1,52 +1,58 @@
|
|||||||
description = 'Spring State Machine Data Common'
|
description = 'Spring State Machine Data Common'
|
||||||
|
|
||||||
project('spring-statemachine-data-jpa') {
|
project('spring-statemachine-data-jpa') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = 'Spring State Machine Data Jpa'
|
description = 'Spring State Machine Data Jpa'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-data-common')
|
api project(':spring-statemachine-data-common')
|
||||||
compile 'org.springframework:spring-orm'
|
api 'org.springframework:spring-orm'
|
||||||
testCompile project(':spring-statemachine-test')
|
testImplementation project(':spring-statemachine-test')
|
||||||
testCompile project(path:':spring-statemachine-data-common', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-data-common")))
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
optional 'org.eclipse.persistence:javax.persistence'
|
optional 'org.eclipse.persistence:javax.persistence'
|
||||||
testCompile 'org.hsqldb:hsqldb'
|
testImplementation 'org.hsqldb:hsqldb'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-data-jpa'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-web'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-data-redis') {
|
project('spring-statemachine-data-redis') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = 'Spring State Machine Data Redis'
|
description = 'Spring State Machine Data Redis'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-data-common')
|
api project(':spring-statemachine-data-common')
|
||||||
compile 'org.springframework.data:spring-data-redis'
|
api 'org.springframework.data:spring-data-redis'
|
||||||
testCompile project(':spring-statemachine-test')
|
testImplementation project(':spring-statemachine-test')
|
||||||
optional 'org.eclipse.persistence:javax.persistence'
|
optional 'org.eclipse.persistence:javax.persistence'
|
||||||
testCompile project(path:':spring-statemachine-data-common', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-data-common")))
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
testRuntime 'org.apache.commons:commons-pool2'
|
testRuntimeOnly 'org.apache.commons:commons-pool2'
|
||||||
testRuntime 'redis.clients:jedis'
|
testRuntimeOnly 'redis.clients:jedis'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-data-redis'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-web'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-data-mongodb') {
|
project('spring-statemachine-data-mongodb') {
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
description = 'Spring State Machine Data MongoDB'
|
description = 'Spring State Machine Data MongoDB'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-data-common')
|
api project(':spring-statemachine-data-common')
|
||||||
compile 'org.springframework.data:spring-data-mongodb'
|
api 'org.springframework.data:spring-data-mongodb'
|
||||||
testCompile project(':spring-statemachine-test')
|
testImplementation project(':spring-statemachine-test')
|
||||||
optional 'org.eclipse.persistence:javax.persistence'
|
optional 'org.eclipse.persistence:javax.persistence'
|
||||||
testCompile project(path:':spring-statemachine-data-common', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-data-common")))
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
||||||
testRuntime 'org.springframework.boot:spring-boot-starter-web'
|
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
28
spring-statemachine-platform/build.gradle
Normal file
28
spring-statemachine-platform/build.gradle
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
plugins {
|
||||||
|
id 'java-platform'
|
||||||
|
}
|
||||||
|
|
||||||
|
javaPlatform {
|
||||||
|
allowDependencies()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
|
||||||
|
constraints {
|
||||||
|
api "log4j:log4j:$log4jVersion"
|
||||||
|
api "org.eclipse.persistence:javax.persistence:$eclipsePersistenceVersion"
|
||||||
|
api "com.esotericsoftware:kryo-shaded:$kryoVersion"
|
||||||
|
api "org.springframework.shell:spring-shell:$springShellVersion"
|
||||||
|
api "org.eclipse.uml2:uml:$eclipseUml2UmlVersion"
|
||||||
|
api "org.eclipse.uml2:types:$eclipseUml2TypesVersion"
|
||||||
|
api "org.eclipse.uml2:common:$eclipseUml2CommonVersion"
|
||||||
|
api "org.eclipse.emf:org.eclipse.emf.ecore.xmi:$eclipseEmfXmiVersion"
|
||||||
|
api "org.eclipse.emf:org.eclipse.emf.ecore:$eclipseEmfEcoreVersion"
|
||||||
|
api "org.eclipse.emf:org.eclipse.emf.common:$eclipseEmfCommonVersion"
|
||||||
|
api "org.apache.curator:curator-recipes:$curatorVersion"
|
||||||
|
api "org.apache.curator:curator-test:$curatorVersion"
|
||||||
|
api "org.awaitility:awaitility:$awaitilityVersion"
|
||||||
|
api "io.projectreactor.tools:blockhound:$reactorBlockHoundVersion"
|
||||||
|
api "io.projectreactor.tools:blockhound-junit-platform:$reactorBlockHoundVersion"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,216 +2,252 @@ description = 'Spring State Machine Samples Common'
|
|||||||
|
|
||||||
project('spring-statemachine-samples-turnstile') {
|
project('spring-statemachine-samples-turnstile') {
|
||||||
description = 'Spring State Machine Turnstile Sample'
|
description = 'Spring State Machine Turnstile Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-turnstilereactive') {
|
project('spring-statemachine-samples-turnstilereactive') {
|
||||||
description = 'Spring State Machine Turnstile Reactive Sample'
|
description = 'Spring State Machine Turnstile Reactive Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
compile 'org.springframework.boot:spring-boot-starter-webflux'
|
api 'org.springframework.boot:spring-boot-starter-webflux'
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
testCompile 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-showcase') {
|
project('spring-statemachine-samples-showcase') {
|
||||||
description = 'Spring State Machine Showcase Sample'
|
description = 'Spring State Machine Showcase Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-cdplayer') {
|
project('spring-statemachine-samples-cdplayer') {
|
||||||
description = 'Spring State Machine CD Player Sample'
|
description = 'Spring State Machine CD Player Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-tasks') {
|
project('spring-statemachine-samples-tasks') {
|
||||||
description = 'Spring State Machine Parallel Regions Sample'
|
description = 'Spring State Machine Parallel Regions Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-washer') {
|
project('spring-statemachine-samples-washer') {
|
||||||
description = 'Spring State Machine History State Sample'
|
description = 'Spring State Machine History State Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-zookeeper') {
|
project('spring-statemachine-samples-zookeeper') {
|
||||||
description = 'Spring State Machine Distributed Sample'
|
description = 'Spring State Machine Distributed Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
compile project(':spring-statemachine-zookeeper')
|
api project(':spring-statemachine-zookeeper')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-persist') {
|
project('spring-statemachine-samples-persist') {
|
||||||
description = 'Spring State Machine Persist Sample'
|
description = 'Spring State Machine Persist Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-samples-common')
|
api project(':spring-statemachine-samples-common')
|
||||||
compile project(':spring-statemachine-recipes-common')
|
api project(':spring-statemachine-recipes-common')
|
||||||
compile ('org.hsqldb:hsqldb')
|
api ('org.hsqldb:hsqldb')
|
||||||
compile ('org.springframework:spring-jdbc')
|
api ('org.springframework:spring-jdbc')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-web') {
|
project('spring-statemachine-samples-web') {
|
||||||
description = 'Spring State Machine Web Sample'
|
description = 'Spring State Machine Web Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-cluster')
|
api project(':spring-statemachine-cluster')
|
||||||
compile('org.springframework.boot:spring-boot-starter-security')
|
api('org.springframework.boot:spring-boot-starter-security')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-websocket')
|
api('org.springframework.boot:spring-boot-starter-websocket')
|
||||||
compile('org.springframework:spring-webmvc')
|
api('org.springframework:spring-webmvc')
|
||||||
compile('org.springframework:spring-websocket')
|
api('org.springframework:spring-websocket')
|
||||||
compile('org.springframework.security:spring-security-messaging')
|
api('org.springframework.security:spring-security-messaging')
|
||||||
compile('org.springframework.session:spring-session-core')
|
api('org.springframework.session:spring-session-core')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-scope') {
|
project('spring-statemachine-samples-scope') {
|
||||||
description = 'Spring State Machine Web Scope Sample'
|
description = 'Spring State Machine Web Scope Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-security') {
|
project('spring-statemachine-samples-security') {
|
||||||
description = 'Spring State Machine Web Security Sample'
|
description = 'Spring State Machine Web Security Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
compile('org.springframework.boot:spring-boot-starter-security')
|
api('org.springframework.boot:spring-boot-starter-security')
|
||||||
compile('org.springframework.security:spring-security-config')
|
api('org.springframework.security:spring-security-config')
|
||||||
compile('org.springframework.security:spring-security-web')
|
api('org.springframework.security:spring-security-web')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-eventservice') {
|
project('spring-statemachine-samples-eventservice') {
|
||||||
description = 'Spring State Machine Event Service Sample'
|
description = 'Spring State Machine Event Service Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
api project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
compile('org.apache.commons:commons-pool2')
|
api('org.apache.commons:commons-pool2')
|
||||||
runtime('redis.clients:jedis')
|
implementation('redis.clients:jedis')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-deploy') {
|
project('spring-statemachine-samples-deploy') {
|
||||||
description = 'Spring State Machine Deploy Sample'
|
description = 'Spring State Machine Deploy Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-uml')
|
api project(':spring-statemachine-uml')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-ordershipping') {
|
project('spring-statemachine-samples-ordershipping') {
|
||||||
description = 'Spring State Machine Order Shipping Sample'
|
description = 'Spring State Machine Order Shipping Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-uml')
|
api project(':spring-statemachine-uml')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-datajpa') {
|
project('spring-statemachine-samples-datajpa') {
|
||||||
description = 'Spring State Machine Data Jpa Sample'
|
description = 'Spring State Machine Data Jpa Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-autoconfigure')
|
api project(':spring-statemachine-autoconfigure')
|
||||||
compile project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
api project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
api('org.springframework.boot:spring-boot-starter-data-jpa')
|
||||||
compile('org.springframework.boot:spring-boot-devtools')
|
api('org.springframework.boot:spring-boot-devtools')
|
||||||
compile('com.h2database:h2')
|
api('com.h2database:h2')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-datajpamultipersist') {
|
project('spring-statemachine-samples-datajpamultipersist') {
|
||||||
description = 'Spring State Machine Data Jpa Multi Persist Sample'
|
description = 'Spring State Machine Data Jpa Multi Persist Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-autoconfigure')
|
api project(':spring-statemachine-autoconfigure')
|
||||||
compile project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
api project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
api('org.springframework.boot:spring-boot-starter-data-jpa')
|
||||||
compile('org.springframework.boot:spring-boot-devtools')
|
api('org.springframework.boot:spring-boot-devtools')
|
||||||
compile('com.h2database:h2')
|
api('com.h2database:h2')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-datapersist') {
|
project('spring-statemachine-samples-datapersist') {
|
||||||
description = 'Spring State Machine Data Persist Sample'
|
description = 'Spring State Machine Data Persist Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-autoconfigure')
|
api project(':spring-statemachine-autoconfigure')
|
||||||
compile project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
api project(':spring-statemachine-data-common:spring-statemachine-data-jpa')
|
||||||
compile project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
api project(':spring-statemachine-data-common:spring-statemachine-data-redis')
|
||||||
compile project(':spring-statemachine-data-common:spring-statemachine-data-mongodb')
|
api project(':spring-statemachine-data-common:spring-statemachine-data-mongodb')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
api('org.springframework.boot:spring-boot-starter-data-jpa')
|
||||||
compile('org.springframework.boot:spring-boot-starter-data-redis')
|
api('org.springframework.boot:spring-boot-starter-data-redis')
|
||||||
compile('org.springframework.boot:spring-boot-starter-data-mongodb')
|
api('org.springframework.boot:spring-boot-starter-data-mongodb')
|
||||||
compile('org.springframework.boot:spring-boot-devtools')
|
api('org.springframework.boot:spring-boot-devtools')
|
||||||
compile('com.h2database:h2')
|
api('com.h2database:h2')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project('spring-statemachine-samples-monitoring') {
|
project('spring-statemachine-samples-monitoring') {
|
||||||
description = 'Spring State Machine Monitoring Sample'
|
description = 'Spring State Machine Monitoring Sample'
|
||||||
|
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':spring-statemachine-autoconfigure')
|
api project(':spring-statemachine-autoconfigure')
|
||||||
compile('org.springframework.boot:spring-boot-starter-actuator')
|
api('org.springframework.boot:spring-boot-starter-actuator')
|
||||||
compile('org.springframework.boot:spring-boot-starter-web')
|
api('org.springframework.boot:spring-boot-starter-web')
|
||||||
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
|
api('org.springframework.boot:spring-boot-starter-thymeleaf')
|
||||||
testCompile('com.jayway.jsonpath:json-path')
|
testImplementation('com.jayway.jsonpath:json-path')
|
||||||
testCompile('com.jayway.jsonpath:json-path-assert')
|
testImplementation('com.jayway.jsonpath:json-path-assert')
|
||||||
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
|
testImplementation(testFixtures(project(":spring-statemachine-core")))
|
||||||
testCompile 'io.projectreactor:reactor-test'
|
testImplementation 'io.projectreactor:reactor-test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user