mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
97 lines
3.6 KiB
Groovy
97 lines
3.6 KiB
Groovy
plugins {
|
|
id "java"
|
|
id "org.springframework.boot.conventions"
|
|
id "org.springframework.boot.docker-test"
|
|
}
|
|
|
|
description = "Spring Boot cache smoke test"
|
|
|
|
sourceSets {
|
|
redisTest {
|
|
compileClasspath += sourceSets.main.output
|
|
runtimeClasspath += sourceSets.main.output
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
caffeine
|
|
couchbase
|
|
ehcache
|
|
hazelcast
|
|
infinispan
|
|
}
|
|
|
|
dependencies {
|
|
caffeine(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
caffeine("com.github.ben-manes.caffeine:caffeine")
|
|
|
|
couchbase(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
couchbase(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-couchbase"))
|
|
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-redis"))
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
|
|
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
|
|
dockerTestImplementation("org.testcontainers:junit-jupiter")
|
|
|
|
ehcache(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
ehcache("javax.cache:cache-api")
|
|
ehcache("org.ehcache:ehcache::jakarta")
|
|
|
|
hazelcast(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
hazelcast("com.hazelcast:hazelcast")
|
|
hazelcast("com.hazelcast:hazelcast-spring")
|
|
|
|
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"))
|
|
|
|
infinispan(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
|
|
infinispan("javax.cache:cache-api")
|
|
infinispan("org.infinispan:infinispan-commons-jakarta")
|
|
infinispan("org.infinispan:infinispan-component-annotations")
|
|
infinispan("org.infinispan:infinispan-core-jakarta")
|
|
infinispan("org.infinispan:infinispan-jcache")
|
|
modules {
|
|
module("org.inifinispan:infinispan-commons") {
|
|
replacedBy("org.infinispan:infinispan-commons-jakarta", "Java EE 9 baseline")
|
|
}
|
|
module("org.inifinispan:infinispan-core") {
|
|
replacedBy("org.infinispan:infinispan-core-jakarta", "Java EE 9 baseline")
|
|
}
|
|
}
|
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
|
}
|
|
|
|
def testCaffeine = tasks.register("testCaffeine", Test) {
|
|
description = "Runs the tests against Caffeine"
|
|
classpath = sourceSets.test.runtimeClasspath + configurations.caffeine
|
|
}
|
|
|
|
def testCouchbase = tasks.register("testCouchbase", Test) {
|
|
description = "Runs the tests against Couchbase"
|
|
classpath = sourceSets.test.runtimeClasspath + configurations.couchbase
|
|
}
|
|
|
|
def testEhcache = tasks.register("testEhcache", Test) {
|
|
description = "Runs the tests against Ehcache"
|
|
classpath = sourceSets.test.runtimeClasspath + configurations.ehcache
|
|
systemProperties = ["spring.cache.jcache.config" : "classpath:ehcache3.xml"]
|
|
}
|
|
|
|
def testHazelcast = tasks.register("testHazelcast", Test) {
|
|
description = "Runs the tests against Hazelcast"
|
|
classpath = sourceSets.test.runtimeClasspath + configurations.hazelcast
|
|
}
|
|
|
|
def testInfinispan = tasks.register("testInfinispan", Test) {
|
|
description = "Runs the tests against Infinispan"
|
|
classpath = sourceSets.test.runtimeClasspath + configurations.infinispan
|
|
systemProperties = ["spring.cache.jcache.config" : "classpath:infinispan.xml"]
|
|
}
|
|
|
|
tasks.named("check").configure {
|
|
dependsOn testCaffeine, testCouchbase, testEhcache, testHazelcast, testInfinispan
|
|
}
|