1
1
plugins {
2
2
id " java"
3
3
id " org.springframework.boot.conventions"
4
+ id " org.springframework.boot.docker-test"
4
5
}
5
6
6
7
description = " Spring Boot cache smoke test"
@@ -21,25 +22,29 @@ configurations {
21
22
}
22
23
23
24
dependencies {
24
- implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
25
- implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-cache" ))
26
- implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-web" ))
27
-
28
- testImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
29
-
30
25
caffeine(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
31
26
caffeine(" com.github.ben-manes.caffeine:caffeine" )
32
27
33
28
couchbase(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
34
29
couchbase(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-data-couchbase" ))
35
-
30
+
31
+ dockerTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-data-redis" ))
32
+ dockerTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
33
+ dockerTestImplementation(project(" :spring-boot-project:spring-boot-testcontainers" ))
34
+ dockerTestImplementation(project(" :spring-boot-project:spring-boot-tools:spring-boot-test-support" ))
35
+ dockerTestImplementation(" org.testcontainers:junit-jupiter" )
36
+
36
37
ehcache(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
37
38
ehcache(" javax.cache:cache-api" )
38
39
ehcache(" org.ehcache:ehcache::jakarta" )
39
40
40
41
hazelcast(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
41
42
hazelcast(" com.hazelcast:hazelcast" )
42
43
hazelcast(" com.hazelcast:hazelcast-spring" )
44
+
45
+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
46
+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-cache" ))
47
+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-web" ))
43
48
44
49
infinispan(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
45
50
infinispan(" javax.cache:cache-api" )
@@ -55,13 +60,8 @@ dependencies {
55
60
replacedBy(" org.infinispan:infinispan-core-jakarta" , " Java EE 9 baseline" )
56
61
}
57
62
}
58
-
59
- redisTestImplementation(enforcedPlatform(project(" :spring-boot-project:spring-boot-parent" )))
60
- redisTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-data-redis" ))
61
- redisTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
62
- redisTestImplementation(project(" :spring-boot-project:spring-boot-testcontainers" ))
63
- redisTestImplementation(project(" :spring-boot-project:spring-boot-tools:spring-boot-test-support" ))
64
- redisTestImplementation(" org.testcontainers:junit-jupiter" )
63
+
64
+ testImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
65
65
}
66
66
67
67
def testCaffeine = tasks. register(" testCaffeine" , Test ) {
@@ -91,12 +91,6 @@ def testInfinispan = tasks.register("testInfinispan", Test) {
91
91
systemProperties = [" spring.cache.jcache.config" : " classpath:infinispan.xml" ]
92
92
}
93
93
94
- def testRedis = tasks. register(" testRedis" , Test ) {
95
- description = " Runs the tests against Redis"
96
- classpath = sourceSets. redisTest. runtimeClasspath
97
- testClassesDirs = sourceSets. redisTest. output. classesDirs
98
- }
99
-
100
94
tasks. named(" check" ). configure {
101
- dependsOn testCaffeine, testCouchbase, testEhcache, testHazelcast, testInfinispan, testRedis
95
+ dependsOn testCaffeine, testCouchbase, testEhcache, testHazelcast, testInfinispan
102
96
}
0 commit comments