Skip to content

[MDEP-804] Allow auto-ignore of all non-test scoped dependencies used only in test scope #1304

Description

@jira-importer

Henning Schmiedehausen opened MDEP-804 and commented

Pre-3.2.0, dependencies that were used only in test scope but not declared in test scope (most likely declared in compile scope) were accepted by the plugin and not flagged as a problem.

Starting with 3.2.0 (and the current 3.3.0), these are reported with "Non-test scoped test only dependencies found". If the scope of the dependencies can not be changed (there are many reasons for that in large projects), the old behavior can be restored by adding each flagged dependency to the "ignoredNonTestScopedDependencies" configuration option in the respective project.

This is, especially in large projects, cumbersome and brittle.

There should be a boolean flag, "ignoreAllNonTestScoped" that, when set, allows ignoring non-test scoped dependencies if they are used only in test scope. This flag restores the pre-3.2.0 behavior.


Affects: 3.3.0

Remote Links:

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions