Package: org.gradle.runtime.jvm

## [Java] Interface JarBinarySpec

- Named

- All Superinterfaces:
    BinarySpec, BuildableModelElement, JvmBinarySpec, JvmLibraryBinarySpec, Named

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

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `File` | `getJarFile()` The jar file output for this binary.
    `JvmLibrarySpec` | `getLibrary()` The ProjectJvmLibrary that this binary belongs to.
    `void` | `setJarFile(File jarFile)` Sets the jar file output for this binary.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface JvmBinarySpec` | `getClassesDir, getResourcesDir, getTasks, getToolChain, setClassesDir, setResourcesDir`
    `interface BinarySpec` | `getDisplayName, getSource, getTasks, isBuildable, source`

- - ### Method Detail

    - #### public File getJarFile()

      The jar file output for this binary.

    - #### public JvmLibrarySpec getLibrary()

      The ProjectJvmLibrary that this binary belongs to.

    - #### public void setJarFile(File jarFile)

      Sets the jar file output for this binary.