scalatra의 scalate 사용시 아래와 같은 에러가 발생했다.



Caused by: java.lang.NoSuchMethodError: scala.tools.nsc.Global$gen$.mkBlock(Lscala/collection/immutable/List;)Lscala/reflect/internal/Trees$Tree;scala.tools.nsc.Global$gen$.mkBlock(Lscala/collection/immutable/List;)Lscala/reflect/internal/Trees$Tree;




https://groups.google.com/forum/#!topic/scalatra-user/WGJrzzGYlHA 의 조언("Scalate embeds the compiler, which is not binary compatible across Scala point releases."대로 scala-reflect와 scala-compiler를 dependency에 명시하니 더이상 에러가 발생되지 않았다.


dependencies {
compile "org.scala-lang:scala-library:2.11.7"
compile "org.scala-lang:scala-reflect:2.11.7"
compile "org.scala-lang:scala-compiler:2.11.7" }



Posted by '김용환'
,