Hi, I've been using Gradle with the Scala plugin for quite some time and this has worked fine with Scala 2.7.7
I'm trying to create a new project using Scala 2.8, but this seems to cause some problems. The project (which can be found here: http://github.com/jeppenejsum/liftstart) compiles fine but when launched with jettyRun, it fails: ERROR - Failed to Boot! Your application may not run properly java.lang.NoSuchMethodError: net.liftweb.mapper.KeyedMetaMapper$class.$init$(Lnet/liftweb/mapper/KeyedMetaMapper;)V at example.model.User$.<init>(User.scala:11) at example.model.User$.<clinit>(User.scala) at bootstrap.liftweb.Boot.boot(Boot.scala:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:361) at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:359) at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:1496) at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:1496) at net.liftweb.common.Full.map(Box.scala:398) at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1496) at net.liftweb.http.provider.HTTPProvider$class.bootLift(HTTPProvider.scala:75) at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:586) at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init(ServletFilterProvider.scala:40) at net.liftweb.http.LiftFilter.init(LiftServlet.scala:586) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) Now, this kind of error is usually because there's a mismatch between the libs used at compile time vs runtime, but I'm not sure this is the case here. I've tried deleting all caches, other jars etc but to no avail. Some observations: - When I change the Scala version back to 2.7.7 everything works fine (see build.gradle in the included project) - The same project built with maven works fine - If I copy the compiled files generated by maven into build/classes/main I can launch jetty with Gradle just fine. The last point leads me to believe there might be a problem with compiling Scala 2.8 files with Gradle. I glanced at the source to the Scala plugin, but couldn't see any obvious other than it uses the ant tasks. So any hints? Have others used Gradle with Scala 2.8 with no issues? /Jeppe --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
