{% altDetails install-info-box 'Getting upickle' %}
{% tabs upickle-install-methods class=tabs-build-tool %} {% tab 'Scala CLI' %} Using Scala CLI, you can require the entire toolkit in a single line:
//> using toolkit latest
Alternatively, you can require just a specific version of UPickle:
//> using dep com.lihaoyi::upickle:4.1.0
{% endtab %} {% tab 'sbt' %} In your build.sbt file, you can add the dependency on the Toolkit:
lazy val example = project.in(file("."))
.settings(
scalaVersion := "3.4.2",
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
)
Alternatively, you can require just a specific version of UPickle:
libraryDependencies += "com.lihaoyi" %% "upickle" % "4.1.0"
{% endtab %} {% tab 'Mill' %} In your build.sc file, you can add the dependency to the upickle library:
object example extends ScalaModule {
def scalaVersion = "3.4.2"
def ivyDeps =
Agg(
ivy"org.scala-lang::toolkit:0.7.0"
)
}
Alternatively, you can require just a specific version of UPickle:
ivy"com.lihaoyi::upickle:4.1.0"
{% endtab %} {% endtabs %} {% endaltDetails %}