Interface JarBinarySpec

All Superinterfaces:
Binary, BinarySpec, Buildable, BuildableComponentSpec, CheckableComponentSpec, ComponentSpec, JvmBinarySpec, LibraryBinarySpec, ModelElement, Named

@Incubating public interface JarBinarySpec extends LibraryBinarySpec, JvmBinarySpec
Definition of a Jar file binary that is to be built by Gradle.
  • Method Details

    • getTasks

      The set of tasks associated with this binary.
      Specified by:
      getTasks in interface BinarySpec
    • getLibrary

      JvmLibrarySpec getLibrary()
      The library that this binary belongs to.
      Specified by:
      getLibrary in interface LibraryBinarySpec
    • getId

      The unique identifier of this JarBinarySpec.
    • getJarFile

      File getJarFile()
      The jar file output for this binary.
    • setJarFile

      void setJarFile(File jarFile)
      Sets the jar file output for this binary.
    • getApiJarFile

      File getApiJarFile()
      The API jar file output for this binary.
    • setApiJarFile

      void setApiJarFile(File jarFile)
      Sets the API jar file output for this binary.
    • setExportedPackages

      void setExportedPackages(Set<String> exportedPackages)
    • getExportedPackages

      Set<String> getExportedPackages()