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:
Janne Valkealahti
2023-05-31 12:27:41 +01:00
parent 6fc2b0070e
commit 7a0feb4774
12 changed files with 579 additions and 405 deletions

View File

@@ -1,52 +1,58 @@
description = 'Spring State Machine Data Common'
project('spring-statemachine-data-jpa') {
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
description = 'Spring State Machine Data Jpa'
dependencies {
compile project(':spring-statemachine-data-common')
compile 'org.springframework:spring-orm'
testCompile project(':spring-statemachine-test')
testCompile project(path:':spring-statemachine-data-common', configuration:'testArtifacts')
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
testCompile 'io.projectreactor:reactor-test'
api project(':spring-statemachine-data-common')
api 'org.springframework:spring-orm'
testImplementation project(':spring-statemachine-test')
testImplementation(testFixtures(project(":spring-statemachine-data-common")))
testImplementation(testFixtures(project(":spring-statemachine-core")))
testImplementation 'io.projectreactor:reactor-test'
optional 'org.eclipse.persistence:javax.persistence'
testCompile 'org.hsqldb:hsqldb'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testRuntime 'org.springframework.boot:spring-boot-starter-data-jpa'
testRuntime 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.hsqldb:hsqldb'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-jpa'
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
}
}
project('spring-statemachine-data-redis') {
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
description = 'Spring State Machine Data Redis'
dependencies {
compile project(':spring-statemachine-data-common')
compile 'org.springframework.data:spring-data-redis'
testCompile project(':spring-statemachine-test')
api project(':spring-statemachine-data-common')
api 'org.springframework.data:spring-data-redis'
testImplementation project(':spring-statemachine-test')
optional 'org.eclipse.persistence:javax.persistence'
testCompile project(path:':spring-statemachine-data-common', configuration:'testArtifacts')
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
testCompile 'io.projectreactor:reactor-test'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testRuntime 'org.apache.commons:commons-pool2'
testRuntime 'redis.clients:jedis'
testRuntime 'org.springframework.boot:spring-boot-starter-data-redis'
testRuntime 'org.springframework.boot:spring-boot-starter-web'
testImplementation(testFixtures(project(":spring-statemachine-data-common")))
testImplementation(testFixtures(project(":spring-statemachine-core")))
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.apache.commons:commons-pool2'
testRuntimeOnly 'redis.clients:jedis'
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-redis'
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
}
}
project('spring-statemachine-data-mongodb') {
apply from: "$rootDir/gradle/java-test-fixtures.gradle"
description = 'Spring State Machine Data MongoDB'
dependencies {
compile project(':spring-statemachine-data-common')
compile 'org.springframework.data:spring-data-mongodb'
testCompile project(':spring-statemachine-test')
api project(':spring-statemachine-data-common')
api 'org.springframework.data:spring-data-mongodb'
testImplementation project(':spring-statemachine-test')
optional 'org.eclipse.persistence:javax.persistence'
testCompile project(path:':spring-statemachine-data-common', configuration:'testArtifacts')
testCompile project(path:':spring-statemachine-core', configuration:'testArtifacts')
testCompile 'io.projectreactor:reactor-test'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testRuntime 'org.springframework.boot:spring-boot-starter-data-mongodb'
testRuntime 'org.springframework.boot:spring-boot-starter-web'
testImplementation(testFixtures(project(":spring-statemachine-data-common")))
testImplementation(testFixtures(project(":spring-statemachine-core")))
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-mongodb'
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
}
}