Class DescriptorGeneratorTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
io.freefair.gradle.plugins.maven.plugin.AbstractGeneratorTask
io.freefair.gradle.plugins.maven.plugin.DescriptorGeneratorTask
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>

public abstract class DescriptorGeneratorTask extends AbstractGeneratorTask
See Also:
  • DescriptorGeneratorMojo
  • Constructor Details

    • DescriptorGeneratorTask

      public DescriptorGeneratorTask()
  • Method Details

    • getProjectLayout

      @Inject protected abstract ProjectLayout getProjectLayout()
    • getSourceDirectories

      @InputFiles public abstract ConfigurableFileCollection getSourceDirectories()
    • getClassesDirectories

      @InputFiles public abstract ConfigurableFileCollection getClassesDirectories()
    • getPomFile

      @InputFile public abstract RegularFileProperty getPomFile()
    • getOutputDirectory

      @OutputDirectory public abstract DirectoryProperty getOutputDirectory()
    • getEncoding

      @Optional @Input public abstract Property<String> getEncoding()
      The file encoding of the source files.
      See Also:
      • DescriptorGeneratorMojo.encoding
    • getSkipErrorNoDescriptorsFound

      @Input public abstract Property<Boolean> getSkipErrorNoDescriptorsFound()
      See Also:
      • DescriptorGeneratorMojo.skipErrorNoDescriptorsFound
    • generate

      protected void generate() throws org.apache.maven.tools.plugin.extractor.ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException, org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException, org.apache.maven.tools.plugin.generator.GeneratorException
      Specified by:
      generate in class AbstractGeneratorTask
      Throws:
      org.apache.maven.tools.plugin.extractor.ExtractionException
      org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      IOException
      org.apache.maven.tools.plugin.generator.GeneratorException
      See Also:
      • DescriptorGeneratorMojo.generate()