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.
37 lines
1.2 KiB
Groovy
37 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot.conventions'
|
|
}
|
|
|
|
description = 'Spring Boot Session smoke test'
|
|
|
|
def sessionStores = [
|
|
'hazelcast': [
|
|
'com.hazelcast:hazelcast',
|
|
'org.springframework.session:spring-session-hazelcast'
|
|
],
|
|
'jdbc': [
|
|
project(':spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc'),
|
|
'org.springframework.session:spring-session-jdbc' ,
|
|
'com.h2database:h2'
|
|
],
|
|
'mongodb': [
|
|
project(':spring-boot-project:spring-boot-starters:spring-boot-starter-data-mongodb'),
|
|
'org.springframework.session:spring-session-data-mongodb'
|
|
],
|
|
'redis': [
|
|
project(':spring-boot-project:spring-boot-starters:spring-boot-starter-data-redis'),
|
|
'org.springframework.session:spring-session-data-redis'
|
|
]
|
|
]
|
|
|
|
dependencies {
|
|
implementation project(':spring-boot-project:spring-boot-starters:spring-boot-starter-actuator')
|
|
implementation project(':spring-boot-project:spring-boot-starters:spring-boot-starter-security')
|
|
implementation project(':spring-boot-project:spring-boot-starters:spring-boot-starter-web')
|
|
|
|
sessionStores[project.findProperty('sessionStore') ?: 'jdbc'].each { runtimeOnly it }
|
|
|
|
testImplementation project(':spring-boot-project:spring-boot-starters:spring-boot-starter-test')
|
|
}
|