Skip to content

Commit b6db663

Browse files
committed
Replace deprecated getDependencyArtifacts with getArtifacts in org.apache.maven.project.MavenProject
1 parent 20a49a5 commit b6db663

File tree

1 file changed

+1
-1
lines changed
  • log4j-transform-maven-plugin/src/main/java/org/apache/logging/log4j/transform/maven

1 file changed

+1
-1
lines changed

log4j-transform-maven-plugin/src/main/java/org/apache/logging/log4j/transform/maven/LocationMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private boolean validateLog4jVersion() throws MojoExecutionException {
210210
return false;
211211
}
212212
// Transitive dependency
213-
if (!project.getDependencyArtifacts().contains(log4jApi)) {
213+
if (!project.getArtifacts().contains(log4jApi)) {
214214
getLog().warn("Log4j2 API should not be a transitive dependency.");
215215
}
216216
} catch (OverConstrainedVersionException e) {

0 commit comments

Comments
 (0)