Skip to content

Commit 2324cf2

Browse files
committed
Set groovy compiler to java 17
groovy compiler is required to produce java 17 not java 25 code
1 parent bcca956 commit 2324cf2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,12 @@ project('spring-integration-groovy') {
623623
tasks.withType(JavaForkOptions) {
624624
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
625625
}
626+
627+
tasks.withType(GroovyCompile).configureEach {
628+
options.fork = true
629+
sourceCompatibility = JavaVersion.VERSION_17
630+
options.encoding = 'UTF-8'
631+
}
626632
}
627633

628634
project('spring-integration-hazelcast') {

0 commit comments

Comments
 (0)