Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: keep compatibility with 2023.3 Beta2 #1270

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

fbricon
Copy link
Contributor

@fbricon fbricon commented Nov 23, 2023

MavenServerManager.WRAPPED_MAVEN was removed in 2023.3 without any deprecation warning, so we keep a local copy

Signed-off-by: Fred Bricon [email protected]

Copy link

sonarcloud bot commented Nov 23, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.6% 4.6% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@@ -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!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define a private static field

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's what I did 1st, but intellij said it was better to keep it local

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very strange? Ok as you wish.

@angelozerr angelozerr merged commit 886315c into redhat-developer:main Nov 23, 2023
8 of 9 checks passed
@angelozerr
Copy link
Contributor

Thanks @fbricon !

@angelozerr angelozerr added this to the 1.30.0 milestone Nov 23, 2023
@angelozerr angelozerr added the bug Something isn't working label Nov 23, 2023
@fbricon fbricon changed the title fix: keep compatibility with 2023.3 fix: keep compatibility with 2023.3 Beta2 Nov 23, 2023
@fbricon fbricon deleted the fix-2023.3-compat branch November 23, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants