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.
28 lines
952 B
Groovy
28 lines
952 B
Groovy
5 years ago
|
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')
|
||
|
}
|