I am using SBT 0.13.2 (could be e.g. 0.13.5 just as well) and am trying to take a project written for 2.10 and cross-compile it for both 2.9 and 2.10. It uses scala.util.hashing.MurmurHash3
, which doesn't exist in 2.9; instead there's scala.util.MurmurHash
(which may not be compatible???). My source will need to be different to handle the imports in different places and the different interfaces. I presume I need to have two different .scala
files and somehow tell SBT to compile one .scala
file when compiling for 2.9, and a different .scala
file for 2.10. How do I do this?
Thanks.