简体   繁体   中英

What are the differences in SBT Project and Scala Module in IntelliJ?

Started learning Scala recently. I know the differences between build.sbt and build.scala . But what are the differences in between these two project types in IntelliJ ?

Scala Module in IDEA doesn't have anything to do with SBT's Build.scala . It's just an IDEA module which contains Scala (and may or may not use SBT). If you and any other developers only ever want to work with the project from IDEA (and are sure that you'll never change your mind), using a non-SBT Scala module may be good enough; I personally prefer SBT even for this case (it's nicer to keep in version control than IDEA's module files, dependency management is simpler, there are a lot of useful SBT plugins, etc.)

The differences 'in' IntelliJ are the same as they are outside of IntelliJ. The SBT plugin references those files in the same manner as SBT outside of IntelliJ does.

It's possible, if you're seeing a difference, there are project settings that are interfering, but 'out of the box' you shouldn't see this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM