File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ configurations {
21
21
infinispan
22
22
}
23
23
24
+ def javaVersion () {
25
+ project. extensions. java. toolchain. languageVersion. map({ it. asInt() }). getOrElse(JavaVersion . current(). majorVersion)
26
+ }
27
+
24
28
dependencies {
25
29
implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
26
30
implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-cache" ))
@@ -37,9 +41,7 @@ dependencies {
37
41
ehcache(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
38
42
ehcache(" javax.cache:cache-api" )
39
43
ehcache(" org.ehcache:ehcache" )
40
- if (JavaVersion . current(). java11Compatible) {
41
- ehcache(" org.glassfish.jaxb:jaxb-runtime" )
42
- }
44
+ ehcache(provider({ (javaVersion() >= 11 ) ? " org.glassfish.jaxb:jaxb-runtime" : null }))
43
45
ehcache2(enforcedPlatform(project(" :spring-boot-project:spring-boot-dependencies" )))
44
46
ehcache2(" net.sf.ehcache:ehcache" )
45
47
You can’t perform that action at this time.
0 commit comments