Module java

The java module contains the properties and rules for building Java projects.

Java Properties

PropertyTypeDefaultDescription
additionalClassPathsstringListundefinedLocations beside this product's class output path to consider when compiling.
additionalCompilerFlagsstringListundefinedUse this to supply compiler flags not covered by any of the properties in this module.
additionalJarFlagsstringListundefinedUse this to supply archiver flags not covered by any of the properties in this module.
bootClassPathsstringListundefinedUse this if you need to specify non-standard bootstrap class files.
compilerFilePathstringcompilerName, prefixed by jdkPath if it is definedThe command to invoke when compiling Java sources.
compilerNamestring"javac"The file name of the Java compiler.
enableWarningsbooltrueControls whether warnings are emitted when compiling Java sources.
interpreterFilePathstringinterpreterName, prefixed by jdkPath if it is definedThe command to invoke when executing Java code.
interpreterNamestring"java"The file name of the Java interpreter.
jarFilePathstringjarName, prefixed by jdkPath if it is definedThe command to run when creating or extracting jar files.
jarNamestring"jar"The file name of the jar tool.
jdkPathpathundefinedThe base path of Java-related tools.
languageVersionstringundefinedThe Java language version to interpret source code as. If undefined, the compiler will use its default.
runtimeVersionstringundefinedThe version of the Java runtime to generate compatible bytecode for. If undefined, the compiler will use its default.
warningsAsErrorsboolfalseIf this property is enabled, the compiler will abort where it would normally emit a warning.