How to create inter project dependency for SBT Scala projects


I have 4 different SBT scala projects that have dependency between them. Currently I have open each one of them in a separate IntelliJ and when I change something in one project I have to publish its artifacts locally and then refresh the other projects to see the new changes.

Is there any easy way to have them all together in the same IntelliJ with dependencies directly coming from the modules and not from built artifacts.   



评论操作 固定链接

If the projects are tightly coupled it's often a good idea to set up a multi-project build in sbt:

This can then be easily imported into IntelliJ