Skip to content

Commit

Permalink
put circe-yaml fork in a better package
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindberg committed Jun 22, 2022
1 parent 0892076 commit aa73c65
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bleep-core/src/main/scala/bleep/BuildLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bleep

import bleep.internal.{FileUtils, Lazy}
import io.circe.Json
import io.circe.yaml24
import io.circe.yaml12

import java.nio.file.{Files, Path}
import scala.util.control.NonFatal
Expand Down Expand Up @@ -32,7 +32,7 @@ object BuildLoader {
case Left(be) => Left(be)
case Right(jsonStr) =>
try
yaml24.parser.parse(jsonStr).left.map(th => new BuildException.InvalidJson(bleepJson, th))
yaml12.parser.parse(jsonStr).left.map(th => new BuildException.InvalidJson(bleepJson, th))
catch {
case NonFatal(th) => Left(new BuildException.InvalidJson(bleepJson, th))
}
Expand Down
2 changes: 1 addition & 1 deletion bleep-core/src/main/scala/bleep/internal/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ package object internal {
def throwableMessages(th: Throwable): List[String] =
th.getMessage :: Option(th.getCause).toList.flatMap(throwableMessages)

private val printer = new io.circe.yaml24.Printer(
private val printer = new io.circe.yaml12.Printer(
preserveOrder = true,
dropNullKeys = true
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.circe.yaml24
package io.circe.yaml12

import io.circe._
import io.circe.yaml24.Printer._
import io.circe.yaml12.Printer._
import org.snakeyaml.engine.v2.api.{DumpSettings, StreamDataWriter}
import org.snakeyaml.engine.v2.common
import org.snakeyaml.engine.v2.emitter.Emitter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.circe.yaml24
package io.circe.yaml12

import cats.syntax.either._
import io.circe._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.circe.yaml24
package io.circe.yaml12

import io.circe.Json

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.circe.yaml24
package io.circe.yaml12

import io.circe.Json

Expand Down

0 comments on commit aa73c65

Please sign in to comment.