4
3

More than 5 years have passed since last update.

GradleでScala2.11のコンパイルをするには

Posted at

Gradleを2.xにしないと、ワケワカなエラーが出ます。

/tmp/sbt_234ad403/CompilerInterface.scala:240: error: recursive method rootLoader needs result type
            override def rootLoader = if(resident) newPackageLoaderCompat(rootLoader)(compiler.classPath) else super.rootLoader
                                                                                      ^
/tmp/sbt_234ad403/CompilerInterface.scala:240: error: value rootLoader is not a member of scala.tools.nsc.backend.JavaPlatform
            override def rootLoader = if(resident) newPackageLoaderCompat(rootLoader)(compiler.classPath) else super.rootLoader
                                                                                                                                 ^
/tmp/sbt_234ad403/CompilerInterface.scala:261: error: value RootClass is not a member of object xsbt.CachedCompiler0.compiler.definitions
                            reSyncCompat(definitions.RootClass, Some(classPath), Some(oldEntry), Some(newEntry))
                                                                                 ^
/tmp/sbt_234ad403/CompilerInterface.scala:337: error: value RootClass is not a member of object xsbt.CachedCompiler0.compiler.definitions
            pkg == definitions.RootClass ||
                                           ^
/tmp/sbt_234ad403/CompilerInterface.scala:286: error: value EmptyPackageClass is not a member of object xsbt.CachedCompiler0.compiler.definitions
                    invalidateOrRemove(definitions.EmptyPackageClass.asInstanceOf[ClassSymbol])

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3