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') {