Skip to content

Commit 5184b94

Browse files
committed
[MDEP-957] By default, don't report slf4j-simple as unused
1 parent 706f200 commit 5184b94

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,15 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo {
228228
* For example, <code>org.apache.*</code> will match all artifacts whose group id starts with
229229
* <code>org.apache.</code>, and <code>:::*-SNAPSHOT</code> will match all snapshot artifacts.
230230
* </p>
231+
* <p>
232+
* By default, org.slf4j:slf4j-simple is ignored. Setting this property to an empty list
233+
* will allow it to be detected.
234+
* </p>
231235
*
232236
* @since 2.10
233237
*/
234238
@Parameter
235-
private String[] ignoredUnusedDeclaredDependencies = new String[0];
239+
private String[] ignoredUnusedDeclaredDependencies = {"org.slf4j:slf4j-simple::"};
236240

237241
/**
238242
* List of dependencies that will be ignored if they are in not test scope but are only used in test classes.
@@ -248,11 +252,15 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo {
248252
* For example, <code>org.apache.*</code> will match all artifacts whose group id starts with
249253
* <code>org.apache.</code>, and <code>:::*-SNAPSHOT</code> will match all snapshot artifacts.
250254
* </p>
255+
* <p>
256+
* By default, org.slf4j:slf4j-simple is ignored. Setting this property to an empty list
257+
* will allow it to be detected.
258+
* </p>
251259
*
252260
* @since 3.3.0
253261
*/
254262
@Parameter
255-
private String[] ignoredNonTestScopedDependencies = new String[0];
263+
private String[] ignoredNonTestScopedDependencies = {"org.slf4j:slf4j-simple::"};
256264

257265
/**
258266
* List of project packaging that will be ignored.

0 commit comments

Comments
 (0)