I've noticed that many Scala projects use sbt.IO which has great file system and IO utilities
E.g. useful things like:
def gzip(in: File, out: File)
def download(url: URL, to: File)
def copyDirectory(source: File, target: File, overwrite: Boolean = false, preserveLastModified: Boolean = false):
However I couldn't find it (funnily enough) in any maven repo officially, what am I missing?
sbt is an open-source build tool for Scala and Java projects, similar to Apache's Maven and Ant. Its main features are: Native support for compiling Scala code and integrating with many Scala test frameworks. Continuous compilation, testing, and deployment.
SBT can build both Scala and Java code out of the box, but with Maven you need to add plugins to build Scala. SBT integrates with the Scala REPL making it easy to run commands against your project code.
Scala2.9
resolvers += Resolver.url("typesafe", url("http://repo.typesafe.com/typesafe/ivy-releases/"))(Resolver.ivyStylePatterns)
libraryDependencies += "org.scala-sbt" % "io" % "0.12.4"
scalaVersion := "2.9.3"
Scala2.10
resolvers += Resolver.url("typesafe", url("http://repo.typesafe.com/typesafe/ivy-releases/"))(Resolver.ivyStylePatterns)
libraryDependencies += "org.scala-sbt" % "io" % "0.13.9"
scalaVersion := "2.10.6"
Scala2.11
resolvers += Resolver.url("typesafe", url("http://repo.typesafe.com/typesafe/ivy-releases/"))(Resolver.ivyStylePatterns)
libraryDependencies += "org.scala-sbt" %% "io" % "0.13.9"
scalaVersion := "2.11.7"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With