From a6e1bd923dde46e51ddf2c4ad0d247567f665a87 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 6 Feb 2025 15:54:00 -0500 Subject: [PATCH] Fix Kotlin `jvmTarget` for Java 17 --- build.gradle | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index ac64b4b2..44140a79 100644 --- a/build.gradle +++ b/build.gradle @@ -183,6 +183,15 @@ configure(javaProjects) { subproject -> options.encoding = 'UTF-8' } + compileTestKotlin { + kotlinOptions { + jvmTarget = JavaVersion.VERSION_17 + } + compilerOptions { + allWarningsAsErrors = true + } + } + eclipse { project { natures += 'org.springframework.ide.eclipse.core.springnature' @@ -444,12 +453,6 @@ project('spring-rabbit') { exclude group: 'org.hamcrest', module: 'hamcrest-core' } } - - compileKotlin { - compilerOptions { - allWarningsAsErrors = true - } - } } project('spring-rabbit-stream') {