I have a multi-module, mono repo style SBT project that uses 64-bit java that we use IntelliJ to develop. At the root of the project we have a build.sbt file that imports subprojects. We recently introduced a new module that has a dll dependency that requires 32-bit java.
As I understand it, our base build.sbt is being treated as a single module. I'd like to be able to treat it as two different modules, and specify 32/64 bit jdk in my run configurations, but I don't see a way to do that.
Alternatively I'd like to be able to invoke sbt to build from the subproject build.sbt rather than the root build.sbt, but I don't see a way to do that, either.
Right now I'm swapping between SDKs when I need to run different submodules, which isn't terrible but is a little janky. I just want to check to here to see if I'm missing something.