I have set up a parallel Gradle / sbt build for my Scala project.
While Gradle will build my application without errors I get the following
stacktrace when trying to run it:
Caused by: java.lang.IncompatibleClassChangeError: Class
scala.collection.mutable.ListBuffer does not implement the requested interface
scala.collection.mutable.Builder
at
scala.collection.TraversableLike$class.filter(TraversableLike.scala:241)
at scala.collection.immutable.List.filter(List.scala:45)
at
scala.collection.TraversableLike$class.filterNot(TraversableLike.scala:250)
at scala.collection.immutable.List.filterNot(List.scala:45)
at
com.agynamix.scala.mi.SynchronizeFolderTree$.main(SynchronizeFolderTree.scala:28)
at
com.agynamix.scala.mi.SynchronizeFolderTree.main(SynchronizeFolderTree.scala)
It looks to me as though the app is compiled with a different version of Scala
2.8 than is used for execution. Yet here's my dependency config:
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.6.3'
findbugsConf fileTree(dir: "$findbugsHome/lib", include: '*.jar')
scalaTools 'org.scala-lang:scala-compiler:2.8.0.RC6'
scalaTools 'org.scala-lang:scala-library:2.8.0.RC6'
compile 'org.scala-lang:scala-library:2.8.0.RC6'
testCompile 'org.junit:junit:4....@jar'
testCompile 'org.scalatest:scalatest:1....@jar'
}
I'm using Gradle:
Gradle buildtime: Wednesday, 2 June 2010 11:39:56 AM EST
Groovy: 1.7.2
Ant: Apache Ant version 1.8.1 compiled on April 30 2010
Ivy: 2.1.0
Java: 1.6.0_20
JVM: 16.3-b01-279
JVM Vendor: Apple Inc.
OS Name: Mac OS X
The app runs fine when build with sbt or directly from Idea.
Thanks for your help!
Torsten.
--
Torsten Uhlmann
AGYNAMIX(R). Passionate Software.
Inh. Torsten Uhlmann
Buchenweg 5, 09380 Thalheim
Phone: +49 3721 273445
Fax: +49 3721 273446
Mobile: +49 151 12412427
Web: http://www.agynamix.de
Skype: torsten.uhlmann
Xing: https://www.xing.com/profile/Torsten_Uhlmann2
LinkedIn: http://www.linkedin.com/in/torstenuhlmann
Facebook, Twitter: agynamix