Enhancements and fixes to the Java upgrade detection and notification in appmod plugin - #12321
Open
HaoZhang (haoozhang) wants to merge 5 commits into
Open
Enhancements and fixes to the Java upgrade detection and notification in appmod plugin#12321HaoZhang (haoozhang) wants to merge 5 commits into
HaoZhang (haoozhang) wants to merge 5 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1089b5a4-61b3-4d84-805f-6dcc3bc7f654
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes.
This pull request introduces several enhancements and fixes to the Java upgrade detection and notification features in the Azure Toolkit for IntelliJ plugin. The main improvements include better detection and reporting of Java version issues in Maven projects, improved notification logic, and new actions to streamline the upgrade process directly from the Problems View.
Java upgrade detection and notification improvements:
JavaUpgradeProblemLocatorutility to resolve and report Java version issues in Maven build files, including handling property references and nested property resolution.JavaUpgradeIssuesInspection.javato dynamically detect Java version problems in XML tags using Maven project properties, instead of relying solely on cached issues. [1] [2] [3]Notification and quick fix enhancements:
JavaUpgradeCheckStartupActivityto trigger upgrade checks after Maven project imports and to control when notifications are shown, preventing unnecessary alerts. [1] [2] [3] [4] [5]JavaUpgradeQuickFix.javato select the appropriate Copilot agent and prompt format based on the specific upgrade reason (e.g., CVE vs. framework upgrade). [1] [2]User interface and action improvements:
UpgradeInProblemsViewActionthat adds a context menu action in the Problems View, allowing users to trigger Copilot-powered upgrades for Java and frameworks directly from detected issues.Dependency updates:
mockito-coreas a test dependency in the build configuration for improved unit testing capabilities.Other fixes:
JDK_LEARN_MORE_URLpublic for broader access.Does this close any currently open issues?
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3054999/?view=edit
Any relevant logs, screenshots, error output, etc.?
Any other comments?
…
Has this been tested?