The javac Java source compiler.

Config section: [javac]

Basic options

args

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

Global javac compiler flags, e.g. --javac-args='-g -deprecation'.


Advanced options

None

Deprecated options

jdk

--javac-jdk=<str>
PANTS_JAVAC_JDK
default: adopt:1.11

Deprecated, will be removed in version: 2.10.0.dev0.
Use `--jvm-jdk`, which behaves the same.


The JDK to use for invoking javac.

This string will be passed directly to Coursier's --jvm parameter. Run cs java --available to see a list of available JVM versions on your platform.

If the string 'system' is passed, Coursier's --system-jvm option will be used instead, but note that this can lead to inconsistent behavior since the JVM version will be whatever happens to be found first on the system's PATH.



Did this page help you?