You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-sess.../build.gradle

29 lines
1.0 KiB
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"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
}