From 88a570828c2e031df1e1a0daa7384f30902daafb Mon Sep 17 00:00:00 2001 From: Eric Wittmann Date: Wed, 28 Aug 2024 09:23:15 -0400 Subject: [PATCH] Improve the verify deps to handle both forms of the redhat suffix --- .../io/apicurio/common/apps/maven/VerifyDependenciesMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-plugin/src/main/java/io/apicurio/common/apps/maven/VerifyDependenciesMojo.java b/maven-plugin/src/main/java/io/apicurio/common/apps/maven/VerifyDependenciesMojo.java index 131d55c..ee16ae2 100644 --- a/maven-plugin/src/main/java/io/apicurio/common/apps/maven/VerifyDependenciesMojo.java +++ b/maven-plugin/src/main/java/io/apicurio/common/apps/maven/VerifyDependenciesMojo.java @@ -90,7 +90,7 @@ public boolean endVisit(DependencyNode dependencyNode) { } private boolean isValid(Artifact artifact) { - return artifact.getVersion().contains("-redhat-"); + return artifact.getVersion().contains("-redhat-") || artifact.getVersion().contains(".redhat-"); } private static String serialize(Set invalidArtifacts) {