Skip to content

Commit

Permalink
Fix printing colored test under Windows (#147)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

Allow printing colored text when running under Windows.

## What are the changes implemented in this PR?

Add a dependency on `jline-terminal-jansi` such that text under Windows is properly colored.
Fix #134
  • Loading branch information
vmax authored Apr 11, 2021
1 parent 98d8f73 commit 19ab651
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ java_library(
"@maven//:io_grpc_grpc_core",
"@maven//:io_grpc_grpc_api",
"@maven//:org_jline_jline",
"@maven//:org_jline_jline_terminal_jansi",
"@maven//:info_picocli_picocli",
"@maven//:org_slf4j_slf4j_api",
],
Expand Down
2 changes: 1 addition & 1 deletion dependencies/graknlabs/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def graknlabs_dependencies():
git_repository(
name = "graknlabs_dependencies",
remote = "https://github.com/graknlabs/dependencies",
commit = "adb0d08bf56a64ae7d731800cfc0f85c63733cf1", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_dependencies
commit = "a5b6828eb979390c1d616198270376edd80f5306", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_dependencies
)

def graknlabs_common():
Expand Down
1 change: 1 addition & 0 deletions dependencies/maven/artifacts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ artifacts = [
"io.grpc:grpc-core",
"io.grpc:grpc-api",
"org.jline:jline",
"org.jline:jline-terminal-jansi",
"org.hamcrest:hamcrest-library",
"org.slf4j:slf4j-api"
]
6 changes: 6 additions & 0 deletions dependencies/maven/artifacts.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
@maven//:org_apiguardian_apiguardian_api_1_1_0
@maven//:org_codehaus_mojo_animal_sniffer_annotations
@maven//:org_codehaus_mojo_animal_sniffer_annotations_1_18
@maven//:org_fusesource_jansi_jansi
@maven//:org_fusesource_jansi_jansi_2_0_1
@maven//:org_hamcrest_hamcrest
@maven//:org_hamcrest_hamcrest_2_2
@maven//:org_hamcrest_hamcrest_all
Expand All @@ -128,6 +130,10 @@
@maven//:org_hamcrest_hamcrest_library_1_3
@maven//:org_jline_jline
@maven//:org_jline_jline_3_17_1
@maven//:org_jline_jline_terminal
@maven//:org_jline_jline_terminal_3_17_1
@maven//:org_jline_jline_terminal_jansi
@maven//:org_jline_jline_terminal_jansi_3_17_1
@maven//:org_mockito_mockito_core
@maven//:org_mockito_mockito_core_2_6_4
@maven//:org_objenesis_objenesis
Expand Down

0 comments on commit 19ab651

Please sign in to comment.