Skip to main content
Version: 2.23

javac


The javac Java source compiler.

Backend: pants.backend.experimental.java

Config section: [javac]

Basic options

args

--javac-args="[<shell_str>, <shell_str>, ...]"
PANTS_JAVAC_ARGS
pants.toml
[javac]
args = [
<shell_str>,
<shell_str>,
...,
]
default: []

Arguments to pass directly to javac, e.g. --javac-args='-g -deprecation'.

Advanced options

tailor_source_targets

--[no-]javac-tailor-source-targets
PANTS_JAVAC_TAILOR_SOURCE_TARGETS
pants.toml
[javac]
tailor_source_targets = <bool>
default: True

If true, add java_sources and java_tests targets with the tailor goal.

Deprecated options

None

None