Class JarGenerator

All Implemented Interfaces:
Generator, ResourceProvider
Direct Known Subclasses:
JavadocJarGenerator, LibraryGenerator, SourcesJarGenerator

public class JarGenerator extends AbstractGenerator
A general purpose generator for jars. All contents must be added explicitly using add(Entry...) or add(FileTree...).
  • Constructor Details

    • JarGenerator

      public JarGenerator(Project project, ResourceType<? extends JarFile> jarType)
      Instantiates a new library generator.
      Parameters:
      project - the project
      jarType - the type of jar that the generator generates
  • Method Details