Class Jar

All Implemented Interfaces:
Comparable<Task>, ContentFilterable, CopyProcessingSpec, CopySourceSpec, CopySpec, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.file.copy.CopySpecSource, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, PatternFilterable, Configurable<Task>
Direct Known Subclasses:
Ear, War

@DisableCachingByDefault(because="Not worth caching") public abstract class Jar extends Jar
Assembles a JAR archive.
  • Constructor Details

    • Jar

      public Jar()
  • Method Details

    • manifest

      public Jar manifest(Closure<?> configureClosure)
      Description copied from class: Jar
      Configures the manifest for this JAR archive.

      The given closure is executed to configure the manifest. The Manifest is passed to the closure as its delegate.

      Overrides:
      manifest in class Jar
      Parameters:
      configureClosure - The closure.
      Returns:
      This.