What is the purpose of `scala-2.11` folder in IntelliJ IDEA -
scala-2.11 folder appeared after recent update of idea , scala plugin.
should used for?
usually such directories used binary version-dependent code. example, macros in 2.10 not source-compatible macros in 2.11, if you're building project different binary versions , you're using macros, makes sense put code valid specific version in different source roots. sbt use appropriate directory when compiling 2.10 or 2.11.
if you're using sbt, though, need set such thing manually in build definition. if you're not using sbt, idea plugin updated handle such things itself.
Comments
Post a Comment