Currently Android facet is generated if usage of sbt-android-plugin Key is detected in project (we need to use a fork of sbt-android-plugin until jberkel/android-plugin#147 is resolved). Currently sets various resource paths on Android facet based on those configured in sbt. Also sets Module JDK to correct Android Platform. Scala library (+ android.jar) is moved to 'Provided' scope, so that IDEA will not try to dex it, so running the code in emulator from IDEA currently needs to have scala-library embedded in emulator image.
While at it, removed old sbt 0.10.1 -> 0.10.2 transition compatibility code for scalaInstance SettingKey -> TaskKey change.
Until jberkel/android-plugin#147 is fixed in the official android plugin, the dependency points to a forked deployment.
While at it, replace replaces (sic) with replaceAll regexp.
… into sbt-0.12 Conflicts: src/main/scala/org/sbtidea/IdeaModuleDescriptor.scala
Fixes a case where a dependency declared as 'provided' will end up as 'test' scoped when the same dependency is also a transitive dependency of test scoped dependency. Provided dependency may be needed for compilation, so it ending as test dep breaks compilation in Idea.