The native packager SBT plugin can be configured to run with certain Java Opts via the plugin configuration or an ini file that can be packaged with the deployable.
When checking whether everything in a target set is present in an actual set, using diff
and then checking for the empty set is quicker than intersect
.