Skip to content

Commit a6e1bd9

Browse files
committed
Fix Kotlin jvmTarget for Java 17
1 parent 5c95de9 commit a6e1bd9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

build.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ configure(javaProjects) { subproject ->
183183
options.encoding = 'UTF-8'
184184
}
185185

186+
compileTestKotlin {
187+
kotlinOptions {
188+
jvmTarget = JavaVersion.VERSION_17
189+
}
190+
compilerOptions {
191+
allWarningsAsErrors = true
192+
}
193+
}
194+
186195
eclipse {
187196
project {
188197
natures += 'org.springframework.ide.eclipse.core.springnature'
@@ -444,12 +453,6 @@ project('spring-rabbit') {
444453
exclude group: 'org.hamcrest', module: 'hamcrest-core'
445454
}
446455
}
447-
448-
compileKotlin {
449-
compilerOptions {
450-
allWarningsAsErrors = true
451-
}
452-
}
453456
}
454457

455458
project('spring-rabbit-stream') {

0 commit comments

Comments
 (0)