Any updates on this?
--
Hey guys,
Earlier tonight I wanted to play around with Play2.1, which uses Scala 2.10, and I ran into issues because Casbah wasn't built yet against Scala 2.10.
I found this thread and you guys inspired me to take a shot at building it myself. Ultimately, it worked! I was able to get my Play2.1 app working with Mongo + Casbah_210.
In case anyone else wants to try building Casbah with 2.10 before official support is offered by the Casbah team, here's what to do:
1) clone my repo: https://github.com/tmingos/casbah
2) Make sure you have sbt installed (if you use homebrew... brew install sbt)
3) navigate to the directory where you cloned the repo
4) In your shell, type
./sbt -210
(note: this is to call a script called sbt, NOT the sbt console so don't forget the "./")
5) you can type "test" to run the tests. Only a few fail on my machine. I belive they are failing in the main Casbah repo as well, but I haven't had time to cofirm. The failing tests are related to the new AggregationFramework support and query dsl.
5) type "publish-local" to publish the Casbah jars to your local repo (~/.ivy2/, etc.)
I was then able to add to my Play Framework 2.1 project as an app dependency.
Anyways, hope that helps anyone else eager to play with Casbah and 2.10 ;)
Taylor
--
Earlier tonight I wanted to play around with Play2.1, which uses Scala 2.10, and I ran into problems because Casbah isn't yet built against Scala 2.10.
I found this thread and you guys inspired me to take a shot at building it myself. Ultimately, it worked! I was able to get my Play2.1 app working with Mongo + Casbah_210.
In case anyone else wants to try building Casbah with 2.10 before official support is offered by the Casbah team, here's what to do:
1) Clone my repo: https://github.com/tmingos/casbah
2) Make sure you have sbt installed (if you use homebrew... brew install sbt)
3) Navigate to the directory where you cloned the repo
4) In your shell, type
./sbt -210
(note: this is to call a script called sbt, NOT the sbt console so don't forget the "./")
5) You can type "test" to run the tests. Only a few fail on my machine. I belive they are failing in the main Casbah repo as well. I haven't had time to confirm this, however. The failing tests are related to the new AggregationFramework support and query dsl.
5) Type "publish-local" to publish the Casbah jars to your local repo (~/.ivy2/, etc.)
I was then able to add the local repo casbah artifacts to my Play Framework 2.1 project.
Anyways, I hope this helps anyone else eager to play with Casbah and 2.10 ;)
Taylor
--
--
Any chance you have a sample app for getting this running with Play?
I'm new to Scala and Play and would love to see it.
Thanks,
Mike
--