CompileOptions

public interface CompileOptions


Java compilation options.

Summary

Public methods

abstract @NonNull String

Java source files encoding.

abstract @NonNull JavaVersion

Language level of the java source code.

abstract @NonNull JavaVersion

Version of the generated Java bytecode.

abstract boolean

Whether core library desugaring is enabled.

abstract void
setCoreLibraryDesugaringEnabled(
    boolean isCoreLibraryDesugaringEnabled
)

Whether core library desugaring is enabled.

abstract void

Java source files encoding.

abstract void

Language level of the java source code.

abstract void

Version of the generated Java bytecode.

abstract void
sourceCompatibility(@NonNull Object sourceCompatibility)

Language level of the java source code.

abstract void
targetCompatibility(@NonNull Object targetCompatibility)

Version of the generated Java bytecode.

Public methods

getEncoding

abstract @NonNull String getEncoding()

Java source files encoding.

getSourceCompatibility

abstract @NonNull JavaVersion getSourceCompatibility()

Language level of the java source code.

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

  • "1.6"

  • 1.6

  • JavaVersion.Version_1_6

  • "Version_1_6"

getTargetCompatibility

abstract @NonNull JavaVersion getTargetCompatibility()

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"

isCoreLibraryDesugaringEnabled

abstract boolean isCoreLibraryDesugaringEnabled()

Whether core library desugaring is enabled.

setCoreLibraryDesugaringEnabled

abstract void setCoreLibraryDesugaringEnabled(
    boolean isCoreLibraryDesugaringEnabled
)

Whether core library desugaring is enabled.

setEncoding

abstract void setEncoding(@NonNull String encoding)

Java source files encoding.

setSourceCompatibility

abstract void setSourceCompatibility(@NonNull JavaVersion sourceCompatibility)

Language level of the java source code.

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

  • "1.6"

  • 1.6

  • JavaVersion.Version_1_6

  • "Version_1_6"

setTargetCompatibility

abstract void setTargetCompatibility(@NonNull 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"

sourceCompatibility

abstract void sourceCompatibility(@NonNull Object sourceCompatibility)

Language level of the java source code.

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

  • "1.6"

  • 1.6

  • JavaVersion.Version_1_6

  • "Version_1_6"

targetCompatibility

abstract void targetCompatibility(@NonNull Object 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"