api / org.gradle.play / JvmClasses

JvmClasses

@Incubating interface JvmClasses : BuildableComponentSpec

A set of classes and resources that operate together.

Functions

addResourceDir

abstract fun addResourceDir(resourceDir: File): Unit

Add a resource directory to this binary.

getClassesDir

abstract fun getClassesDir(): File

The classes directory for this binary.

getResourceDirs

abstract fun getResourceDirs(): MutableSet<File>

A set of resource directories for this binary.

setClassesDir

abstract fun setClassesDir(classesDir: File): Unit

Sets the classes directory for this binary.

Inherited Functions

builtBy

abstract fun builtBy(vararg tasks: Any): Unit

Adds tasks required to build this component. Tasks added this way are subsequently added as dependencies of this component's build task.

getBuildTask

abstract fun getBuildTask(): Task

Returns the task responsible for building this component.

hasBuildDependencies

abstract fun hasBuildDependencies(): Boolean

setBuildTask

abstract fun setBuildTask(buildTask: Task): Unit

Specifies the task responsible for building this component.