Hey! These docs are for version 2.10, which is no longer officially supported. Click here for the latest version, 2.13!

The Scala compiler.

Backend: pants.backend.experimental.scala
Config section: [scalac]

Basic options

args

--scalac-args="[<shell_str>, <shell_str>, ...]"
PANTS_SCALAC_ARGS
default: []

Global scalac compiler flags, e.g. --scalac-args='-encoding UTF-8'.


Advanced options

plugins_global

--scalac-plugins-global="['<str>', '<str>', ...]"
PANTS_SCALAC_PLUGINS_GLOBAL
default: []

A list of addresses of scalac_plugin targets which should be used for compilation of all Scala targets in a build.

If you set this, you must also set [scalac].plugins_global_lockfile.


plugins_global_lockfile

--scalac-plugins-global-lockfile=<str>
PANTS_SCALAC_PLUGINS_GLOBAL_LOCKFILE
default: <default>

The filename of the lockfile for global plugins. You must set this option to a file path, e.g. '3rdparty/jvm/global_scalac_plugins.lock', if you set [scalac].plugins_global.


Deprecated options

None


Did this page help you?