AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

java-upgrade

Upgrade a Java project to a newer JDK (11 to 17, 17 to 21, 21 to 25) and adopt the new language and library features. Detects the current Java version from the build files, then loads only the matching per-version guide. Use when the user asks to upgrade Java, modernize Java code, or adopt records, sealed classes, pattern matching, virtual threads or other new Java features. For automated end-to-end upgrades see the modernize-java plugin.

Original source
github
License
MIT
Pinned revision
5269f7ea2d6c3a9bfda5ed878b6726cf509121fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read github--java-upgrade at revision 5269f7ea2d6c3a9bfda5ed878b6726cf509121fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 5

references/upstream-sources.md

Upstream sources (java-upgrade)

Fetch the page for the target version before editing; prefer it over this skill when they conflict. Replace N with the target JDK (17, 21, 25).

JDK

Build tools and agents

Automation (OpenRewrite)

Related tooling

  • The external Microsoft plugin modernize-java (https://github.com/microsoft/modernize-java, listed in this repository's plugins/external.json) is the more powerful option for automated, large or multi-step upgrades (upgrade plan, build-fix loops, CVE validation). This skill works without it; see "Need a more powerful, automated upgrade?" in SKILL.md.