2

Prints the following in output

> [A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#task-system;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#tasks;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#tracking;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#cache;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#testing;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#test-agent;0.13.13 ...[0m
[A

instead of

[info] Resolving org.scala-sbt#task-system;0.13.13 ...
[info] Resolving org.scala-sbt#tasks;0.13.13 ...
[info] Resolving org.scala-sbt#tracking;0.13.13 ...
[info] Resolving org.scala-sbt#cache;0.13.13 ...
[info] Resolving org.scala-sbt#testing;0.13.13 ...

how can i get rid of the excess junk characters? I am using jenkins to build the scala project using sbt.

ShakyaS
  • 353
  • 1
  • 5
  • 20

1 Answers1

6

Turn off the color output (from here):

-Dsbt.log.noformat=true
Gábor Bakos
  • 8,982
  • 52
  • 35
  • 52
  • While starting SBT us e below command `$ SBT -Dsbt.log.noformat=true` – Riyaj Shaikh Aug 02 '18 at 22:42
  • link to the latest version sbt command line options https://www.scala-sbt.org/1.x/docs/Command-Line-Reference.html#Command+Line+Options – Niks Feb 08 '22 at 15:30