Skip to content

Commit

Permalink
Print error instead of warning when version doesn't match expected
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasHofman committed May 22, 2024
1 parent 02f8649 commit 4066697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class VerifyDependenciesMojoIT {
@MavenTest
void unaligned_test_case(MavenExecutionResult result) throws Exception {
assertThat(result).isFailure();
assertThat(result).out().warn().contains(
assertThat(result).out().error().contains(
"Dependency org.jboss.marshalling:jboss-marshalling:2.0.6.Final doesn't match expected version 2.0.9.Final-redhat-00001",
"Dependency commons-io:commons-io:2.10.0 doesn't match expected version 2.10.1.redhat-00001",
"Dependency io.undertow:undertow-core:2.2.5.Final doesn't match expected version 2.2.6.Final"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
unalignedDependencies.forEach(pair -> {
ArtifactRef dep = pair.getLeft();
String v = pair.getRight();
getLog().warn(String.format("Dependency %s:%s:%s doesn't match expected version %s",
getLog().error(String.format("Dependency %s:%s:%s doesn't match expected version %s",
dep.getGroupId(), dep.getArtifactId(), dep.getVersionString(), v));
});
if (failBuild) {
Expand Down

0 comments on commit 4066697

Please sign in to comment.