导入不带包的scala对象

时间:2019-10-07 18:20:00

标签: scala sbt

我正在尝试使用github存储库:https://github.com/anirudh985/scala-rake

代码的作者没有提供程序包名称,它只是对象。如何将其导入本地代码库?我已经通过sbt导入了它:

lazy val root = (project in file(".")).enablePlugins(BuildInfoPlugin).
  settings(
    buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
    buildInfoPackage := "",
    outputStrategy := Some(StdoutOutput)
  ).dependsOn(rake4s)

lazy val rake4s = RootProject(uri("https://github.com/anirudh985/scala-rake.git"))

0 个答案:

没有答案