For the project, I need to run SBT with certain JVM parameters ( -Dfile.encoding=UTF-8 and several memory parameters / gc), but I donβt necessarily want to apply the same parameters for every SBT project that I have.
I saw ( sbt-extras ) .sbtopts to .sbtopts (SBT command line options for a specific project) and .jvmopts (JVM SBT options for a specific project) that should support this if they are in the root directory of the SBT project, but the standard version of SBT for Windows (I am using version 0.13.1 ) seems to ignore them.
(The sbt-extras approach appeals to me because, assuming that .sbtopts and .jvmopts tracked in version control, for people who want to build a project, zero SBT configuration is required.)
Is there a current mechanism for specifying project-specific SBT parameters that work with cross-platform?
UPDATE Since I originally asked this question, .sbtopts and .jvmopts are now part of the standard version of SBT for Linux, and sbt-extras is no longer required. However, the Windows version only supports .jvmopts and does not recognize .sbtopts .
sbt
Mike allen
source share