kwin commented on code in PR #328: URL: https://github.com/apache/maven-enforcer/pull/328#discussion_r1697180065
########## enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/RequireSameVersions.java: ########## @@ -85,6 +91,13 @@ public void execute() throws EnforcerRuleException { } throw new EnforcerRuleException(builder.toString()); } + + if (sameModuleVersions) { + MavenProject topLevelProject = session.getTopLevelProject(); + if (project != topLevelProject && !Objects.equals(topLevelProject.getVersion(), project.getVersion())) { Review Comment: is it always same project instances or do I need to compare via equals? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org