Skip to content

Commit 0b9c202

Browse files
committed
Fix handling of String Java version in cache smoke test
1 parent e8c2189 commit 0b9c202

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache

1 file changed

+2
-2
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ configurations {
2121
infinispan
2222
}
2323

24-
def javaVersion() {
25-
project.extensions.java.toolchain.languageVersion.map({ it.asInt() }).getOrElse(JavaVersion.current().majorVersion)
24+
int javaVersion() {
25+
project.extensions.java.toolchain.languageVersion.map({ it.asInt() }).getOrElse(Integer.valueOf(JavaVersion.current().majorVersion))
2626
}
2727

2828
dependencies {

0 commit comments

Comments
 (0)