Skip to content

Commit

Permalink
fix: keep compatibility with 2023.3
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Nov 23, 2023
1 parent 6ab8040 commit 188cbb7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ public void processImport(Module module) {
var distributionUrl = getWrapperDistributionUrl(ProjectUtil.guessProjectDir(project));
if (distributionUrl != null) {
String mavenHome = mavenSettings.getMavenHome();
if (!MavenServerManager.WRAPPED_MAVEN.equals(mavenHome)){
mavenSettings.setMavenHome(MavenServerManager.WRAPPED_MAVEN);
String WRAPPED_MAVEN = "Use Maven wrapper"; //MavenServerManager.WRAPPED_MAVEN was removed in 2023.3 without any deprecation warning!
if (!WRAPPED_MAVEN.equals(mavenHome)){
mavenSettings.setMavenHome(WRAPPED_MAVEN);
}
}
}
Expand Down

0 comments on commit 188cbb7

Please sign in to comment.