Skip to content

Commit

Permalink
Merge pull request #111 from snyk/fix/reduce-sbt-output
Browse files Browse the repository at this point in the history
fix: reduce scala script output size
  • Loading branch information
Jdunsby committed Oct 21, 2022
2 parents 0c104cb + 735776e commit ef3f1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scala/SnykSbtPlugin-1.2x.scala
Expand Up @@ -4,7 +4,7 @@ import net.virtualvoid.sbt.graph.DependencyGraphKeys.moduleGraph
import net.virtualvoid.sbt.graph.{ DependencyGraphPlugin, ModuleId }
import sbt._, Keys._
import sjsonnew.shaded.scalajson.ast._
import sjsonnew.support.scalajson.unsafe.PrettyPrinter
import sjsonnew.support.scalajson.unsafe.CompactPrinter

object SnykSbtPlugin extends AutoPlugin {
val ConfigBlacklist: Set[String] =
Expand Down Expand Up @@ -54,7 +54,7 @@ object SnykSbtPlugin extends AutoPlugin {
Def.task {
val allProjectDatas = snykExtractProjectData.all(filter).value
println("Snyk Output Start")
println(PrettyPrinter(JObject(allProjectDatas.map {
println(CompactPrinter(JObject(allProjectDatas.map {
case SnykProjectData(projectId, modules, deps) =>
projectId -> JObject(
Map(
Expand Down

0 comments on commit ef3f1f6

Please sign in to comment.