Package: org.gradle.jvm

## [Java] Interface JarBinarySpec

- org.gradle.jvm.JvmLibraryBinarySpec

- All Superinterfaces:
    JvmBinarySpec, BinarySpec, Buildable, JvmLibraryBinarySpec

  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, getTargetPlatform, getTasks, getToolChain, setClassesDir, setResourcesDir`
    `interface BinarySpec` | `getDisplayName, getSource, getTasks, isBuildable, source`
    `interface BuildableModelElement` | `builtBy, getBuildTask, setBuildTask, hasBuildDependencies, getBuildDependencies`
    `interface Named` | `getName`

- - ### 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.