Skip to main content
Version: 2.9 (deprecated)

scalac


The Scala compiler.

Backend: ``

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.

plugins_global_lockfile

--scalac-plugins-global-lockfile=<str>
PANTS_SCALAC_PLUGINS_GLOBAL_LOCKFILE
pants.toml
[scalac]
plugins_global_lockfile = <str>
default: 3rdparty/jvm/global_scalac_plugins.lock

The filename of a lockfile for global plugins.

Deprecated options

global_addresses

--scalac-global="['<str>', '<str>', ...]"
PANTS_SCALAC_GLOBAL_ADDRESSES
pants.toml
[scalac]
global_addresses = [
'<str>',
'<str>',
...,
]
default: []
Deprecated, will be removed in version: 2.10.0.dev0.
Use `--plugins-global`, which behaves the same.

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

lockfile

--scalac-lockfile=<str>
PANTS_SCALAC_LOCKFILE
pants.toml
[scalac]
lockfile = <str>
default: 3rdparty/jvm/global_scalac_plugins.lockfile
Deprecated, will be removed in version: 2.10.0.dev0.
Use `--plugins-global-lockfile`, which behaves the same.

The filename of a lockfile for global plugins.

None