On Fri, May 27, 2011 at 1:01 AM, Alexis Midon <[email protected]> wrote:

> I added some doc about scala 2.9.
>

Thanks!


> I also wrote some specs, however I'm missing something and I can't change
> the scala version to 2.9, so the specs are failing. I need your rspec-foo
> here.
>

The issue is the scala version gets captured into several constants and
changing Buildr.settings.build['scala.version'] inside a spec doesn't
propagate the change everywhere.

Instead of chasing that goose, I believe it's better to run the specs on all
supported versions of Scala.  It's the only way we really know that all
specs pass for a given version anyway.

To run the specs with a given version (we still default to 2.8.1 for now),
simply pass in the SCALA_VERSION env variable, e.g.,

% SCALA_VERSION=2.9.0 bundle exec rspec spec/scala

I'll need to update our release scripts to run against 2.8.0, 2.8.1 and
2.9.0 later on.

One point you might want to discuss is the default scala version in buildr.
> Could it be upgraded to 2.9.0 or should we stick to 2.8.1 for now?
>

I've upgraded to 2.9.0-1 for now, though I expect to upgrade to 2.9.0-2 when
it's released (within a week or so), after which I'll probably motion to
release Buildr 1.4.6.

Thanks for your help... you've motivated me to add sane default versions for
Scala dependencies (ScalaCheck, ScalaTest and Specs) when using older Scala
versions.

aex

Reply via email to