SBT不关心scalaversion

时间:2016-05-06 11:53:04

标签: scala compilation sbt

我遇到了问题,我想用sbt构建我的scala项目。 我有scala 2.11.8,sbt about print

[info] Loading project definition from /home/xxx
[info] Set current project to base (in build file:/home/xxx)
[info] This is sbt 0.13.8
[info] The current project is {file:/home/xxx}
[info] The current project is built against Scala 2.11.8
[info] 
[info] sbt, sbt plugins, and build definitions are using Scala 2.10.4

但是,当我运行sbt compile时,我有例外:

[error]     during phase: typer
[error]     library version: version 2.10.4
[error]     compiler version: version 2.10.4
有人能帮帮我吗? 感谢

编辑忘记build.sbt文件

build.sbt

name := "myproject"
version := "0.1"
scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
  "io.jvm.uuid" %% "scala-uuid" % "0.2.1",
  "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4",
  "org.scalatest" % "scalatest_2.11" % "2.2.6" % "test",
  "com.github.nscala-time" %% "nscala-time" % "2.12.0",
  "ch.qos.logback" %  "logback-classic" % "1.1.7",
  "com.typesafe.scala-logging" %% "scala-logging" % "3.4.0",
  "org.scala-lang.modules" %% "scala-xml" % "1.0.4",
  "org.scalacheck" %% "scalacheck" % "1.13.0" % "test"
)

我没有这个项目的build.scala

1 个答案:

答案 0 :(得分:0)

对于Fedora 23.我最初使用bintray存储库安装了sbt。我不得不删除它并重新安装没有bintray repo的sbt。 我没有工作,所以我重新安装sbt avec bintray存储库,它的工作原理。我想某些配置搞砸了......