Usage everywhere?
Hi!
Let's take the case modules' configs are extracted from appropriate SBT files. And I use dedicated SBT terminal sessions to build and publish (and plenty other things) modules.
Say, a project has got a module mod1 resulted in publishing artifact "mod1".
Also, the project has got module mod2 resulted in publishing artifact "mod2", and it depends on "mod1".
How to find all usages of class (methods and so on) from mod1 taking into account it is used in mod2?
Direct adding another module as dependency in project config will be lost after updating SBT files. And imagine rather high and wide modules dependency tree.
What is you way?
(I know, I know, it is Ctrl-Shift-F)
Please sign in to leave a comment.
Hi! Are those modules configured as dependencies within sbt? Then they should also be automatically marked as dependency when importing.
Justin, hi! As I have mentioned in the first message, modules depend on each other via maven artifacts only, that is via
libraryDependencies ++= { ... }
in `build.sbt`.
I see. In that case the find usages won't easily work. I think you should be able to configure sbt to depend on the projects directly, however, considering they are already part of the same build, in which case IDEA will also pick it up.
Unfortunately, sbt configurations are a matter of team-shared projects and can not be changed arbitrary. They must be development environment agnostic.