Compilation failed: error while loading AnnotatedElement, ConcurrentMap, CharSequence from Java 8 under Scala 2.10?

后端 未结 9 1955
臣服心动
臣服心动 2020-12-08 09:51

I\'m using the following:

  • Scala 2.10.4
  • Scalatra 2.2.2
  • sbt 0.13.0
  • java 1.8.0
  • casbah 2.7.2
  • scalatra-sbt 0.3.5
  • <
9条回答
  •  臣服心动
    2020-12-08 10:17

    That was a lot of reconfiguration for me to get it to work, here is my (NOW) working build.sbt using, sbt 0.13.15 and scala 2.10.4 and jdk 1.8.1_131

    name := "ScalaTelemetryManagerApi"
    version := "1.0"
    scalaVersion := "2.10.4"
    scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
    
    libraryDependencies ++= {
      Seq(
        "io.spray"            %   "spray-can"     % "1.3.1",
        "io.spray"            %   "spray-routing" % "1.3.1",
        "io.spray"            %   "spray-testkit" % "1.3.1",
        "com.typesafe.akka"   %%  "akka-actor"    % "2.3.2",
        "com.typesafe.akka"   %%  "akka-testkit"  % "2.3.2",
        "org.specs2"          %%  "specs2-core"   % "3.6",
        "com.github.seratch"  %%  "awscala"       % "0.5.+",
        "org.scalaz"      %%  "scalaz-core"   % "7.2.14"
      )
    }
    
    resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases"
    
    Revolver.settings
    
    retrieveManaged := true
    

提交回复
热议问题