Skip to content

Commit

Permalink
chore: replace old jansi dependency (#1439)
Browse files Browse the repository at this point in the history
### Motivation
JAnsi was recently merged into the JLine repository, therefore the old
dependency is no longer updated and we should migrate to the new JAnsi
dependency located in the JLine repository.

### Modification
Replace the current JAnsi dependency with the version from the JLine
repository.

### Result
We use the "new" JAnsi version from the JLine repository and get future
updates.
  • Loading branch information
derklaro authored Jul 8, 2024
1 parent d64f174 commit f00c6c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ lombok = "1.18.34"
javapoet = "1.13.0"

# console
jansi = "2.4.1"
jline = "3.26.2"
cloud = "1.9.0-cn1"
stringSimilarity = "2.0.0"
Expand Down Expand Up @@ -94,7 +93,7 @@ gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }

# console
jline = { group = "org.jline", name = "jline", version.ref = "jline" }
jansi = { group = "org.fusesource.jansi", name = "jansi", version.ref = "jansi" }
jansi = { group = "org.jline", name = "jansi-core", version.ref = "jline" }
stringSimilarity = { group = "info.debatty", name = "java-string-similarity", version.ref = "stringSimilarity" }

# night config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import java.util.regex.Pattern;
import lombok.NonNull;
import org.fusesource.jansi.Ansi;
import org.jetbrains.annotations.Nullable;
import org.jline.jansi.Ansi;

public enum ConsoleColor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
import java.util.function.Supplier;
import java.util.logging.Level;
import lombok.NonNull;
import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiConsole;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import org.jline.jansi.Ansi;
import org.jline.jansi.AnsiConsole;
import org.jline.reader.LineReader;
import org.jline.reader.impl.LineReaderImpl;
import org.jline.terminal.Terminal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.ArrayList;
import java.util.Collection;
import lombok.NonNull;
import org.fusesource.jansi.Ansi;
import org.jline.jansi.Ansi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.locks.LockSupport;
import lombok.NonNull;
import org.fusesource.jansi.Ansi;
import org.jetbrains.annotations.Nullable;
import org.jline.jansi.Ansi;

public class ConsoleSetupAnimation extends AbstractConsoleAnimation {

Expand Down

0 comments on commit f00c6c8

Please sign in to comment.