mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
28 lines
949 B
Groovy
28 lines
949 B
Groovy
plugins {
|
|
id "java"
|
|
id "org.springframework.boot.conventions"
|
|
}
|
|
|
|
description = "Spring Boot Session WebFlux smoke test"
|
|
|
|
def sessionStores = [
|
|
"mongodb": [
|
|
project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-mongodb-reactive"),
|
|
"de.flapdoodle.embed:de.flapdoodle.embed.mongo",
|
|
"org.springframework.session:spring-session-data-mongodb"
|
|
],
|
|
"redis": [
|
|
project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-redis-reactive"),
|
|
"org.springframework.session:spring-session-data-redis"
|
|
]
|
|
]
|
|
|
|
dependencies {
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-security"))
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-webflux"))
|
|
|
|
sessionStores[project.findProperty("sessionStore") ?: "mongodb"].each { runtimeOnly it }
|
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
|
}
|