Class AbstractLicenseMojo
java.lang.Object
nl.javadude.gradle.plugins.license.maven.AbstractLicenseMojo
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final floatprotected final com.mycila.maven.plugin.license.HeaderSection[]protected final String[] -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLicenseMojo(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 Summary
Modifier and TypeMethodDescriptionvoidexecute(com.mycila.maven.plugin.license.Callback callback)
-
Field Details
-
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
-
execute
public void execute(com.mycila.maven.plugin.license.Callback callback) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
mergeProperties
-