Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #282 Better document include* and exclude* parameters in AbstractAddThirdPartyMojo #273

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,90 +113,147 @@ public abstract class AbstractAddThirdPartyMojo
protected boolean acceptPomPackaging;

/**
* A filter to exclude some scopes.
* <p>
* Multiple scopes can be delimited by comma, eg. {@code <excludedScopes>test,provided</excludedScopes>}
* A comma separated list of scopes to exclude: e.g. {@code <excludedScopes>test,provided</excludedScopes>}
* or {@code -Dlicense.excludedScopes=test,provided}.
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is excluded its transitive dependencies
* are not automatically excluded. To enforce this behavior refer to
* {@link #excludeTransitiveDependencies}.
*
* @since 1.1
*/
@Parameter( property = "license.excludedScopes", defaultValue = "system" )
protected String excludedScopes;

/**
* A filter to include only some scopes, if let empty then all scopes will be used (no filter).
* <p>
* Multiple scopes can be delimited by comma, eg. {@code <includedScopes>test,provided</includedScopes>}
* A comma separated list of scopes to include: e.g. {@code <includedScopes>test,provided</includedScopes>}
* or {@code -Dlicense.includedScopes=test,provided}.
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is included also its transitive
* dependencies are included. To suppress this behavior refer to
* {@link #includeTransitiveDependencies}.
*
* @since 1.1
*/
@Parameter( property = "license.includedScopes" )
protected String includedScopes;

/**
* A filter to exclude some types.
* A comma separated list of types to exclude: e.g. {@code <excludedTypes>war,pom</excludedTypes>}
* or {@code -Dlicense.excludedTypes=was,pom}.
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transitive dependencies

* By default if an artifact is excluded its transitive dependencies
* are not automatically excluded. To enforce this behavior refer to
* {@link #excludeTransitiveDependencies}.
*
* @since 1.15
*/
@Parameter( property = "license.excludedTypes" )
protected String excludedTypes;

/**
* A filter to include only some types, if let empty then all types will be used (no filter).
* A comma separated list of types to include.
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is included also its transitive
* dependencies are included. To suppress this behavior refer to
* {@link #includeTransitiveDependencies}.
*
* @since 1.15
*/
@Parameter( property = "license.includedTypes" )
protected String includedTypes;

/**
* A filter to exclude some GroupIds
* This is a regular expression that is applied to groupIds (not an ant pattern).
* A regular expression (not glob pattern) used as filter to exclude
* artifacts that have matching groupId. Match could be also partial for
* example {@code ^org\.}
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is excluded its transitive dependencies
* are not automatically excluded. To enforce this behavior refer to
* {@link #excludeTransitiveDependencies}.
*
* @since 1.1
*/
@Parameter( property = "license.excludedGroups" )
protected String excludedGroups;

/**
* A filter to include only some GroupIds
* This is a regular expression applied to artifactIds.
* A regular expression (not glob pattern) used as filter to include
* only artifacts that have matching groupId.
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is included also its transitive
* dependencies are included. To suppress this behavior refer to
* {@link #includeTransitiveDependencies}.
*
* @since 1.1
*/
@Parameter( property = "license.includedGroups" )
*/ @Parameter( property = "license.includedGroups" )
protected String includedGroups;

/**
* A filter to exclude some ArtifactsIds
* This is a regular expression applied to artifactIds.
* A regular expression (not glob pattern) used as filter to exclude
* artifacts that have matching artifactId. Match could be also partial for
* example {@code ^org\.}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{@code ^org.} is perhaps not an ideal example for an artifactId pattern

* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is excluded its transitive dependencies
* are not automatically excluded. To enforce this behavior refer to
* {@link #excludeTransitiveDependencies}.
*
* @since 1.1
*/
@Parameter( property = "license.excludedArtifacts" )
protected String excludedArtifacts;

/**
* A filter to include only some ArtifactsIds
* This is a regular expression applied to artifactIds.
* A regular expression (not glob pattern) used as filter to include
* only artifacts that have matching artifactId.
* <p>
* This filter is applied on the list of direct dependencies (and
* their transitive dependencies) of the projects in the reactor.
* <p>
* By default if an artifact is included also its transitive
* dependencies are included. To suppress this behavior refer to
* {@link #includeTransitiveDependencies}.
*
* @since 1.1
*/
@Parameter( property = "license.includedArtifacts" )
protected String includedArtifacts;

/**
* Include transitive dependencies when checking for missing licenses and downloading license files.
* If this is <tt>false</tt>, then only direct dependencies are examined.
* If {@code true} enforces including transitive dependencies of the
* projects in the reactor; otherwise only direct dependencies of the
* reactor projects are considered.
*
* @since 1.1
*/
@Parameter( property = "license.includeTransitiveDependencies", defaultValue = "true" )
boolean includeTransitiveDependencies;

/**
* Exclude transitive dependencies from excluded Artifacts
* If {@code true} enforces excluding transitive dependencies of the
* excluded artifacts in the reactor; otherwise only artifacts that match
* exclude filters are excluded.
*
* @since 1.13
*/
Expand Down