Native client configuration
Use sbt 2 and addRemoteCachePlugin in project/plugins.sbt. sbt 1 uses a different remote-cache protocol. Optional global-base selects the global settings directory and must not contain whitespace. Native relative paths use the repo-plan directory and Docker requires an absolute container path. The native adapter preserves other SBT_OPTS and the global base used for plugins. It copies existing global .sbt settings into a private directory, adds cache settings there, and uses a private server directory. Each invocation has its own settings snapshot; setup and cleanup leave the original files unchanged. An existing -Dsbt.global.settings selects which settings to copy.