Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

java-upgrade

Skill by github

Upgrade Java projects to a newer JDK (11 to 17, 17 to 21, 21 to 25) and adopt new language and library features. It is for developers moving a Java codebase to a newer LTS release.

  • Score 94
  • 42k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install java-upgrade

Built from the published package, never by AI.

git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/java-upgrade ~/.claude/skills/java-upgrade

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install java-upgrade in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides a step-by-step upgrade of a Java project to a newer JDK. It reads pom.xml, build.gradle files and CI files to detect the current Java version, then loads only the matching per-version guide for 11 to 17, 17 to 21 or 21 to 25. The workflow upgrades one LTS at a time, updates the build first, and adopts language features in small changes. It also covers verification with the Maven or Gradle build, deprecation fixes, and OpenRewrite recipes.

The skill is for Java developers who want help upgrading a project or modernizing its code with records, sealed classes, pattern matching or virtual threads. It points to the official upstream guides and says to prefer them when they conflict with the skill. For large or fully automated upgrades, the source recommends the separate modernize-java plugin.

Written from the project's SKILL.md and checked against it.

What it can do

  • Version detectionDetects the current Java version from pom.xml, build.gradle files and CI files.
  • Per-version guidesLoads only the matching guide for 11 to 17, 17 to 21 or 21 to 25.
  • Staged upgradeUpgrades one LTS at a time and builds and tests after each step.
  • Build update firstUpdates the compiler release, plugins and dependencies before adopting language features.
  • Feature adoptionAdopts new features such as records, sealed classes, pattern matching and virtual threads incrementally.
  • javax to jakarta migrationUpdates imports, META-INF service files, XML descriptors and dependencies for the Jakarta namespace.

What you need

  • A Java project built with Maven or Gradle
  • Access to the upstream JDK and Oracle migration guides

Try asking

  • Upgrade this Maven project from Java 17 to Java 21
  • Modernize this class with records and pattern matching
  • Check which Java version this Gradle build targets

Good to know

  • Does not adopt preview features unless the user opts in and the build enables them
  • Does not change public APIs unless asked
  • For fully automated end-to-end upgrades, the separate modernize-java plugin is recommended

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/java-upgrade/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • references/java-11-to-17.md22 KB
  • references/java-17-to-21.md14 KB
  • references/java-21-to-25.md10 KB
  • references/upstream-sources.md2 KB

Alternatives to java-upgrade

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

java-upgrade: common questions

Which Java upgrade paths does this skill cover?

It covers upgrades from Java 11 to 17, 17 to 21 and 21 to 25, with a separate guide for each step.

Does it upgrade a project automatically?

It gives step-by-step guidance and works without a plugin. The source says the modernize-java plugin is the more powerful option for large or multi-step upgrades.

How does it handle javax to jakarta changes?

It suggests the javax-to-jakarta-migration skill if installed, otherwise it describes inline steps for imports, service files, XML descriptors and dependencies.

How do I install java-upgrade?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is java-upgrade free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is java-upgrade safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to java-upgrade?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

java-upgrade Install

Add to stack

Loading.