Class AbstractLicenseMojo

java.lang.Object
nl.javadude.gradle.plugins.license.maven.AbstractLicenseMojo

public class AbstractLicenseMojo extends Object
Core header-check and header-format logic adapted from the original Maven license plugin. Iterates over a FileCollection of source files concurrently and delegates per-file decisions to a CallbackWithFailure.

Inlined from hierynomus/license-gradle-plugin. The plexus-utils dependency has been removed (file-extension detection is now in DocumentFactory). All fields are now private final and set via constructor.

Since:
1.1.0
  • Field Details

    • keywords

      protected final String[] keywords
    • headerSections

      protected final com.mycila.maven.plugin.license.HeaderSection[] headerSections
    • concurrencyFactor

      protected final float concurrencyFactor
      See Also:
  • Constructor Details

    • AbstractLicenseMojo

      public AbstractLicenseMojo(Collection<File> validHeaders, File rootDir, Map<String,String> initial, boolean dryRun, boolean skipExistingHeaders, boolean useDefaultMappings, boolean strictCheck, URI header, org.gradle.api.file.FileCollection source, Map<String,String> mapping, String encoding, List<com.mycila.maven.plugin.license.header.HeaderDefinition> headerDefinitions)
  • Method Details