* sync: java-upgrade plugin update from devdiv-azure-service-dmitryr/azure-java-migration-copilot-vscode-extension@187b2f8 Source commit: 187b2f85130550fbb5213b55347ab4afbb8c17e1 Source branch: xiading/sync-java-2 Triggered by: xiading_microsoft Workflow: https://github.com/devdiv-azure-service-dmitryr/azure-java-migration-copilot-vscode-extension/actions/runs/24984055440 * Fix modernize-java plugin checklist issues - Fix keyword casing: 'Java' → 'java' in plugin.json - Add plugins/modernize-java/README.md based on upstream microsoft/modernize-java - Remove hook declarations referencing missing scripts (recordToolUse.sh/.ps1) - Run npm run build to update docs/README.plugins.md, docs/README.agents.md, and marketplace.json Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix README install command to use awesome-copilot marketplace Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: app_modernization <app_modernization@example.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
3.1 KiB
GitHub Copilot modernization – Java Upgrade CLI Plugin
GitHub Copilot modernization – Java Upgrade CLI Plugin helps you upgrade your Java applications directly from the command line. It brings the same intelligent modernization capabilities as the VS Code extension to your terminal and CI/CD pipelines, enabling you to:
- Analyze your project, assess your dependencies, and generate an upgrade plan
- Execute the plan to automatically transform your codebase
- Fix build issues and resolve migration errors during the upgrade process
- Validate your application against known CVEs after the upgrade
- Output a detailed summary including file changes, updated dependencies, and upgrade results
Installation
copilot plugin install modernize-java@awesome-copilot
Quick Start
copilot --model claude-sonnet-4.6 --agent modernize-java:modernize-java
Key Capabilities
🔍 Intelligent Analysis and Upgrade Planning
Modernization starts with understanding your code. The CLI automatically analyzes your Java project and generates a customizable upgrade plan that you can review and edit before execution.
🔧 Automatic Code Transformation and Error Fixing
The CLI applies code transformations, automatically resolves build issues, and runs test validations — ensuring a smooth, error-free upgrade process without manual intervention.
🛡️ Post-Upgrade CVE Validation
After upgrade, the CLI scans for CVE (Common Vulnerabilities and Exposures) issues and code inconsistencies, then reports detected issues with suggested fixes to improve your application's security posture.
🔄 Upgrade Summary
At the end of each upgrade run, the CLI outputs a structured summary covering file changes, updated dependencies, test validation results, and any remaining issues — suitable for review in pull requests or CI logs.
Feedback
We value your feedback — share your thoughts here to help us continue improving the product.
License
MIT
Trademarks
Authorized use of Microsoft trademarks or logos must follow Microsoft's Trademark & Brand Guidelines.
Privacy Statement
GitHub Copilot modernization uses GitHub Copilot to make code changes, which does not retain code snippets beyond the immediate session. We do not collect, transmit, or store your custom tasks. Review the Microsoft Privacy Statement.
Telemetry metrics are collected and analyzed to track feature usage and effectiveness. Learn more about telemetry settings in VS Code.
Transparency Note
GitHub Copilot modernization uses AI to make code changes, and AI sometimes makes mistakes. Please review and test all changes before using them in production.
Disclaimer
Unless otherwise permitted under applicable license(s), users may not decompile, modify, repackage, or redistribute any assets, prompts, or internal tools provided as part of this product without prior written consent from Microsoft.