2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-01-23 03:24:37 +08:00
|
|
|
id "java"
|
|
|
|
id "org.springframework.boot.conventions"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-01-23 03:24:37 +08:00
|
|
|
description = "Spring Boot cache smoke test"
|
2020-01-10 21:48:43 +08:00
|
|
|
|
|
|
|
def caches = [
|
2020-01-23 03:24:37 +08:00
|
|
|
"caffeine": [
|
|
|
|
"com.github.ben-manes.caffeine:caffeine"
|
2020-01-10 21:48:43 +08:00
|
|
|
],
|
2021-12-10 22:28:20 +08:00
|
|
|
"couchbase": [
|
|
|
|
project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-couchbase")
|
|
|
|
],
|
2022-02-27 04:43:05 +08:00
|
|
|
"ehcache": [
|
|
|
|
"javax.cache:cache-api",
|
|
|
|
dependencies.create("org.ehcache:ehcache") {
|
|
|
|
artifact {
|
|
|
|
classifier = 'jakarta'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2020-01-23 03:24:37 +08:00
|
|
|
"hazelcast": [
|
|
|
|
"com.hazelcast:hazelcast",
|
|
|
|
"com.hazelcast:hazelcast-spring"
|
2020-01-10 21:48:43 +08:00
|
|
|
],
|
2020-01-23 03:24:37 +08:00
|
|
|
"redis": [
|
|
|
|
project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-redis")
|
2020-01-10 21:48:43 +08:00
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
dependencies {
|
2020-01-23 06:09:17 +08:00
|
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator"))
|
|
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-cache"))
|
|
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2020-01-23 06:09:17 +08:00
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2020-01-23 03:24:37 +08:00
|
|
|
if (project.hasProperty("cache")) {
|
|
|
|
caches[project.getProperty("cache")].each { runtimeOnly it }
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|