IntelliJ IDEA
 
2025.1
Get IntelliJ IDEA

Separate main and test modules in sbt (beta)

Last modified: 16 January 2025

There is a new, experimental mode of working with sbt projects in IntelliJ IDEA with the Scala plugin. If enabled, it organizes main and test sources into separate modules, which improves compilation and dependency management.

Refer to the New Module Layout for sbt Projects article in the JetBrains blog for more details and examples of how this new mode helps configure sbt projects.