8

我注意到许多 Scala 项目使用sbt.IO,它具有出色的文件系统和 IO 实用程序

例如有用的东西,如:

def gzip(in: File, out: File)
def download(url: URL, to: File)
def copyDirectory(source: File, target: File, overwrite: Boolean = false, preserveLastModified: Boolean = false):

但是我在官方的任何 maven repo 中都找不到它(很有趣),我错过了什么?

4

1 回答 1

12

斯卡拉2.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"

斯卡拉2.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"

斯卡拉2.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"
于 2013-08-16T22:07:56.250 回答