api / org.gradle.jvm / JarBinarySpec

JarBinarySpec

@Incubating interface JarBinarySpec : LibraryBinarySpec, JvmBinarySpec

Definition of a Jar file binary that is to be built by Gradle.

Types

TasksCollection

interface TasksCollection : BinaryTasksCollection

Provides access to key tasks used for building the binary.

Functions

getApiJarFile

abstract fun getApiJarFile(): File

The API jar file output for this binary.

getExportedPackages

abstract fun getExportedPackages(): MutableSet<String>

getId

abstract fun getId(): LibraryBinaryIdentifier

The unique identifier of this JarBinarySpec.

getJarFile

abstract fun getJarFile(): File

The jar file output for this binary.

getLibrary

abstract fun getLibrary(): JvmLibrarySpec

{@inheritDoc}

getTasks

abstract fun getTasks(): TasksCollection

{@inheritDoc}

setApiJarFile

abstract fun setApiJarFile(jarFile: File): Unit

Sets the API jar file output for this binary.

setExportedPackages

abstract fun setExportedPackages(exportedPackages: MutableSet<String>): Unit

setJarFile

abstract fun setJarFile(jarFile: File): Unit

Sets the jar file output for this binary.

Inherited Functions

getClassesDir

abstract fun getClassesDir(): File

The classes directory for this binary.

getResourcesDir

abstract fun getResourcesDir(): File

The resources directory for this binary.

getTargetPlatform

abstract fun getTargetPlatform(): JavaPlatform

The target platform for this binary.

getToolChain

abstract fun getToolChain(): JavaToolChain

Returns the org.gradle.jvm.toolchain.JavaToolChain that will be used to build this binary.

setClassesDir

abstract fun setClassesDir(classesDir: File): Unit

Sets the classes directory for this binary.

setResourcesDir

abstract fun setResourcesDir(dir: File): Unit

Sets the resources directory for this binary.

setTargetPlatform

abstract fun setTargetPlatform(platform: JavaPlatform): Unit

Sets the target platform for this binary.

setToolChain

abstract fun setToolChain(toolChain: JavaToolChain): Unit

Sets the org.gradle.jvm.toolchain.JavaToolChain that will be used to build this binary.