I am working with Play Framework, Scala and SBT. I needed to divide my project into modules because it was getting too big. Since I am not familiar with SBT, I created a dummy project to play around. My dummyproject has some controllers in itself, a core module with some utilities and a models module that uses some utilities from core module.
My primary objective here is to avoid compiling modules unless it is absolutely necessary (e.g. it's code is changed.).
I can make modules depend on each other using dependsOn but as far as I understand, they depend on the code of other module.
What I'd like to do is to somehow package compiled files of each module into jar files, and make dependencies use jar files instead of code itself. How can I accomplish this?