Javac compiler:
compile.using(:javac)
Used by default if .java files are found in the src/main/java directory (or src/test/java) and sets the target directory to target/classes (or target/test/classes).
Accepts the following options:
:warnings – Issue warnings when compiling. True when running in verbose mode.
:debug – Generates bytecode with debugging information. Set from the debug
environment variable/global option.
:deprecation – If true, shows deprecation messages. False by default.
:source – Source code compatibility.
:target – Bytecode compatibility.
:lint – Lint option is one of true, false (default), name (e.g. ‘cast’) or array.
:other – Array of options passed to the compiler
(e.g. [‘-implicit:none’, ‘-encoding’, ‘iso-8859-1’])