I was looking exactly for something like that. Thanks a lot. On 16 September 2010 13:31, Alex Boisvert <[email protected]> wrote:
> On Thu, Sep 16, 2010 at 9:12 AM, Rafa de Castro > <[email protected]>wrote: > >> At the moment the simplest solution I found is manually changing the >> buildr-1.4.1-java\lib\buildr\scala\bdd.rb file of buildr and changing the >> default version of specs to the 2.8 one. Then it workd flawlessly with: >> >> test.using(:specs) >> test.with(MOCKITO) >> >> I suppose in 1.4.2 this will be the default.but it's a solution for all >> the >> people using 1.4.1 now. >> > > Yes, that's probably the easiest solution for Buildr 1.4.1. > > Just to provide more context, in Buildr 1.4.1 it was possible to change the > specs versions used by adding this to your Buildfile, > > Buildr.settings.build['scala.specs'] = "1.6.5" > > The problem, however, is that specs for scala 2.8.0 was released under a > different maven artifact id (e.g. specs_2.8.0) so now in Buildr 1.4.2 it's > also possible to provide an fully-qualified artifact id, > > Buildr.settings.build['scala.specs'] = > 'org.scala-tools.testing:spec_2.8.0:jar:1.6.5' > > And as before, this can also be specified in build.yaml, > > scala.specs: org.scala-tools.testing:spec_2.8.0:jar:1.6.5 > > Hopefully this works nicely moving forward. > > alex > > -- Rafa de Castro [email protected]
