mirror of https://github.com/sbt/sbt.git
sjson-new 0.14.0-M4
This commit is contained in:
parent
44097ec127
commit
be5152dbfb
|
|
@ -112,7 +112,7 @@ private[librarymanagement] abstract class ModuleReportExtra {
|
|||
|
||||
private def calendarToString(c: ju.Calendar): String = {
|
||||
import sjsonnew.*, BasicJsonProtocol.*
|
||||
implicitly[IsoString[ju.Calendar]] to c
|
||||
implicitly[IsoString[ju.Calendar]].to(c)
|
||||
}
|
||||
|
||||
def retrieve(f: (ModuleID, Artifact, File) => File): ModuleReport =
|
||||
|
|
|
|||
|
|
@ -99,9 +99,9 @@ object DMSerializationSpec extends BasicTestSuite {
|
|||
}
|
||||
|
||||
def roundtripBuilder[A: JsonReader: JsonWriter](a: A)(f: (A, A) => Unit): Unit = {
|
||||
val json = isoString to (Converter toJsonUnsafe a)
|
||||
val json = isoString.to(Converter.toJsonUnsafe(a))
|
||||
println(json)
|
||||
val obj = Converter.fromJsonUnsafe[A](isoString from json)
|
||||
val obj = Converter.fromJsonUnsafe[A](isoString.from(json))
|
||||
f(a, obj)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ object SettingQuery {
|
|||
case NoJsonWriter() => Left(s"JsonWriter for ${key.tag} not found")
|
||||
}
|
||||
|
||||
def toJson[A: JsonWriter](x: A): JValue = Converter toJsonUnsafe x
|
||||
def toJson[A: JsonWriter](x: A): JValue = Converter.toJsonUnsafe(x)
|
||||
|
||||
def getSettingJsonValue[A](
|
||||
structure: BuildStructure,
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ object Dependencies {
|
|||
def addSbtZinc = addSbtModule(sbtZincPath, "zinc", zinc)
|
||||
def addSbtZincCompileCore = addSbtModule(sbtZincPath, "zincCompileCore", zincCompileCore)
|
||||
|
||||
lazy val sjsonNewVersion = "0.14.0-M2"
|
||||
lazy val sjsonNewVersion = "0.14.0-M4"
|
||||
def sjsonNew(n: String) = Def.setting(
|
||||
"com.eed3si9n" %% n % sjsonNewVersion
|
||||
) // contrabandSjsonNewVersion.value
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import java.io.File
|
|||
|
||||
import scala.util.control.NonFatal
|
||||
import sbt.io.{ Hash, IO }
|
||||
import sjsonnew.{ arrayFormat as _, * }
|
||||
import sjsonnew.*
|
||||
import sjsonnew.BasicJsonProtocol.given
|
||||
import sbt.nio.file.*
|
||||
import sbt.nio.file.syntax.*
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue