diff --git a/gradle.properties b/gradle.properties index 6bcdb28e8..03dcec323 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ version=3.1.5-SNAPSHOT springBootVersion=3.1.5 nativeBuildToolsVersion=0.9.19 commonsIoVersion=2.11.0 -jlineVersion=3.23.0 +jlineVersion=3.24.1 st4Version=4.3.3 jimfsVersion=1.2 gradleEnterpriseVersion=3.10.3 diff --git a/spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/JLineShellAutoConfiguration.java b/spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/JLineShellAutoConfiguration.java index c9789f1ee..0ddeeb178 100644 --- a/spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/JLineShellAutoConfiguration.java +++ b/spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/JLineShellAutoConfiguration.java @@ -21,6 +21,7 @@ import org.jline.reader.Parser; import org.jline.terminal.Terminal; import org.jline.terminal.TerminalBuilder; +import org.jline.terminal.TerminalBuilder.SystemOutput; import org.jline.utils.AttributedString; import org.jline.utils.AttributedStyle; @@ -45,6 +46,7 @@ public class JLineShellAutoConfiguration { public Terminal terminal(ObjectProvider customizers) { try { TerminalBuilder builder = TerminalBuilder.builder(); + builder.systemOutput(SystemOutput.SysOut); customizers.orderedStream().forEach(customizer -> customizer.customize(builder)); return builder.build(); } diff --git a/spring-shell-test-autoconfigure/src/main/java/org/springframework/shell/test/autoconfigure/ShellAutoConfiguration.java b/spring-shell-test-autoconfigure/src/main/java/org/springframework/shell/test/autoconfigure/ShellAutoConfiguration.java index ddc694970..f01bd8e91 100644 --- a/spring-shell-test-autoconfigure/src/main/java/org/springframework/shell/test/autoconfigure/ShellAutoConfiguration.java +++ b/spring-shell-test-autoconfigure/src/main/java/org/springframework/shell/test/autoconfigure/ShellAutoConfiguration.java @@ -42,7 +42,8 @@ TerminalCustomizer terminalStreamsTerminalCustomizer(TerminalStreams terminalStr return builder -> { builder.streams(terminalStreams.input, terminalStreams.output) .jansi(false) - .jna(false); + .jna(false) + .jni(false); }; }