I'm managed to setup sbt with java 11 modules support (java.net.http) with simply adding
scalacOptions ++= Seq(
options to build.sbt, and it works great without any issues from shell (i'm Windows user) and under WLS too.
While for some reasons if I'm running build from sbt-shell from inside of Intellij Idea i'm getting classpath error with `java.net.http package not found`, I've tried to add custom vm option with `--add-modules java.net.http` and tried custom launcher, nothing helps.
From my point of view it seems intellij idea somehow are making jvm fork on build that doesn't have proper jvm arguments and I don't see any way to pass them into fork.
If anyone come across that or similar issue, any suggestions?