I have a build that works locally, but fails on bitbucket pipelines with a StackOverflowError. How can I increase the stack size used by SBT, by passing in JAVA_OPTS or adding to .sbtopts.
[error] java.lang.StackOverflowError
[error] scala.tools.nsc.typechecker.Contexts$Context.make(Contexts.scala:496)
https://stackoverflow.com/questions/34318705/why-does-sbt-compile-fail-with-stackoverflowerror