Skip to content

Commit 1f4eb5b

Browse files
committed
Upgrade jline 3.24.1
- Default TerminalBuilder system outpu to SysOut to restore writing to stdout instead of stderr when redirect exists - Backport #891 - Backport #901 - Fixes #915 - Fixes #912
1 parent 8bab928 commit 1f4eb5b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</scm>
2323

2424
<properties>
25-
<jline.version>3.23.0</jline.version>
25+
<jline.version>3.24.1</jline.version>
2626
<antlr-st4.version>4.3.3</antlr-st4.version>
2727
<jimfs.version>1.2</jimfs.version>
2828
</properties>

spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/JLineShellAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.jline.reader.Parser;
2222
import org.jline.terminal.Terminal;
2323
import org.jline.terminal.TerminalBuilder;
24+
import org.jline.terminal.TerminalBuilder.SystemOutput;
2425
import org.jline.utils.AttributedString;
2526
import org.jline.utils.AttributedStyle;
2627

@@ -43,7 +44,7 @@ public class JLineShellAutoConfiguration {
4344
@Bean(destroyMethod = "close")
4445
public Terminal terminal() {
4546
try {
46-
return TerminalBuilder.builder().build();
47+
return TerminalBuilder.builder().systemOutput(SystemOutput.SysOut).build();
4748
}
4849
catch (IOException e) {
4950
throw new BeanCreationException("Could not create Terminal: " + e.getMessage());

0 commit comments

Comments
 (0)