From 0b9c2025fb17ff680fe743dff60cb9bc8bd3dc9d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 10 Aug 2022 11:32:55 +0100 Subject: [PATCH] Fix handling of String Java version in cache smoke test --- .../spring-boot-smoke-test-cache/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/build.gradle b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/build.gradle index f7a4f9d1af..0d9a3cfe04 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/build.gradle +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/build.gradle @@ -21,8 +21,8 @@ configurations { infinispan } -def javaVersion() { - project.extensions.java.toolchain.languageVersion.map({ it.asInt() }).getOrElse(JavaVersion.current().majorVersion) +int javaVersion() { + project.extensions.java.toolchain.languageVersion.map({ it.asInt() }).getOrElse(Integer.valueOf(JavaVersion.current().majorVersion)) } dependencies {