Package: org.gradle.jvm

## [Java] Interface JarBinarySpec

- org.gradle.jvm.JarBinarySpec

- All Superinterfaces:
    BinarySpec, JvmBinarySpec, Buildable

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

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Collection<DependencySpec>` | `getApiDependencies()`
    `File` | `getApiJarFile()` The API jar file output for this binary.
    `Set<String>` | `getExportedPackages()`
    `LibraryBinaryIdentifier` | `getId()` The unique identifier of this JarBinarySpec.
    `File` | `getJarFile()` The jar file output for this binary.
    `void` | `setApiDependencies(Collection<DependencySpec> apiDependencies)`
    `void` | `setApiJarFile(File jarFile)` Sets the API jar file output for this binary.
    `void` | `setExportedPackages(Set<String> exportedPackages)`
    `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, setTargetPlatform, setToolChain`
    `interface BinarySpec` | `getDisplayName, getInputs, getSource, getSources, getTasks, isBuildable, sources, tasks`
    `interface BuildableModelElement` | `builtBy, getBuildTask, setBuildTask, hasBuildDependencies, getBuildDependencies`
    `interface Named` | `getName`

- - ### Method Detail

    - #### public Collection<DependencySpec> getApiDependencies()

    - #### public File getApiJarFile()

      The API jar file output for this binary.

    - #### public Set<String> getExportedPackages()

    - #### public LibraryBinaryIdentifier getId()

      The unique identifier of this JarBinarySpec.

    - #### public File getJarFile()

      The jar file output for this binary.

    - #### public void setApiDependencies(Collection<DependencySpec> apiDependencies)

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

      Sets the API jar file output for this binary.

    - #### public void setExportedPackages(Set<String> exportedPackages)

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

      Sets the jar file output for this binary.