CompileOptions

Compilation options.

Properties

PropertyDescription
encoding

Source files encoding.

sourceCompatibility

Language level of the source code.

targetCompatibility

Version of the generated Java bytecode.

Methods

No methods

Script blocks

No script blocks

Property details

String encoding

Source files encoding.

JavaVersion sourceCompatibility

Language level of the source code.

Similar to what Gradle Java plugin uses. Formats supported are:

  • "1.6"
  • 1.6
  • JavaVersion.Version_1_6
  • "Version_1_6"

JavaVersion targetCompatibility

Version of the generated Java bytecode.

Similar to what Gradle Java plugin uses. Formats supported are:

  • "1.6"
  • 1.6
  • JavaVersion.Version_1_6
  • "Version_1_6"