org.gradle.runtime.jvm

## Interface JarBinarySpec

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

      @Incubating
      public interface JarBinarySpec
      extends JvmLibraryBinarySpec

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

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.gradle.api.Named

      `Named.Namer`

  - ### Method Summary

    Methods
    Modifier and Type | Method 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.

    - ### Methods inherited from interface org.gradle.runtime.jvm.JvmBinarySpec

      `getClassesDir, getResourcesDir, getTasks, getToolChain, setClassesDir, setResourcesDir`

    - ### Methods inherited from interface org.gradle.runtime.base.BinarySpec

      `getDisplayName, getSource, isBuildable, source`

    - ### Methods inherited from interface org.gradle.api.BuildableModelElement

      `builtBy, getBuildTask, hasBuildDependencies, setBuildTask`

    - ### Methods inherited from interface org.gradle.api.Buildable

      `getBuildDependencies`

    - ### Methods inherited from interface org.gradle.api.Named

      `getName`

- - ### Method Detail

    - #### getLibrary

          JvmLibrarySpec getLibrary()

      The ProjectJvmLibrary that this binary belongs to.

    - #### getJarFile

          File getJarFile()

      The jar file output for this binary.

    - #### setJarFile

          void setJarFile(File jarFile)

      Sets the jar file output for this binary.