Skip to content

Commit

Permalink
Resolves #990: Check prerequisites if required enforcer Maven version…
Browse files Browse the repository at this point in the history
… is empty
  • Loading branch information
andrzejj0 committed Aug 19, 2023
1 parent 4c1457d commit b9fe63b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ static Optional<ArtifactVersion> getGreatestVersion(ArtifactVersion... v) {

static ArtifactVersion find(MavenProject mavenProject, Log log) {
return getGreatestVersion(
getEnforcerMavenVersion(mavenProject, log),
ofNullable(mavenProject.getPrerequisites())
.map(Prerequisites::getMaven)
.map(DefaultArtifactVersionCache::of)
.orElse(null))
getEnforcerMavenVersion(mavenProject, log),
ofNullable(mavenProject.getPrerequisites())
.map(Prerequisites::getMaven)
.map(DefaultArtifactVersionCache::of)
.orElse(null))
.orElse(null);
}

Expand Down

0 comments on commit b9fe63b

Please sign in to comment.