Skip to main content
Version: 2.10 (deprecated)

scalac


The Scala compiler.

Backend: pants.backend.experimental.scala

Config section: [scalac]

Basic options

args

--scalac-args="[<shell_str>, <shell_str>, ...]"
PANTS_SCALAC_ARGS
pants.toml
[scalac]
args = [
<shell_str>,
<shell_str>,
...,
]
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
pants.toml
[scalac]
plugins_global = [
'<str>',
'<str>',
...,
]
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
pants.toml
[scalac]
plugins_global_lockfile = <str>
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

None