Migrates Maven projects to Gradle Kotlin DSL with version catalogs. Handles single/multi-module, Spring Boot, BOM mapping, plugin translation, and dual-build overlay mode.
Ships in maven-to-gradle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Last verified: 2026-07 (Gradle 9.6.x era). Facts here age. If the answer hinges on a version-sensitive fact — a Gradle version, a plugin ID or coordinate, a version-catalog rule, a DSL idiom — and time has passed since the stamp above, spot-check current release notes or the tool's own source before asserting it. When current docs disagree with this file, the docs win: say so and note the line is stale.
scripts/migrate.py to generate baseline Gradle files.Plugin IDs, DSL syntax, and dependency coordinates change between Gradle versions. Before finalizing output, look up current docs (Context7 MCP, web fetch, Gradle Plugin Portal, or gh api repos/{owner}/{repo}/releases/latest) for any plugin or framework whose version is newer than the model's training data, or whose Gradle equivalent is uncommon. Do not assume a plugin ID or DSL form is correct from memory.
pom.xml: packaging type (jar/pom/war), parent POM, modules, profiles.pom.xml for inter-module dependencies.references/plugin-mappings.md).Gradle ships its own converter.
gradle init --type pomdetectspom.xmland generatessettings.gradle(.kts)+build.gradle(.kts), importing repositories and the Java/War/Maven-Publish plugins. Use it as a baseline or a sanity check. This skill's script goes further: version catalogs (libs.versions.toml), Spring Boot BOM splitting, Maven profile equivalents, and multi-module convention plugins — none of whichgradle initproduces.Gradle 9 changed things this skill's snippets predate: the Groovy DSL moved to Groovy 4.0 (behavioural changes), the embedded Kotlin went to 2.2 (affects Kotlin DSL scripts), and Gradle's own API now uses JSpecify rather than JSR-305 annotations. If a snippet here misbehaves on 9.x, check the Gradle 9 upgrade guide before assuming the snippet is wrong.
Two modes:
Full migration (default) — generates Gradle files; suggests removing Maven after verification:
python3 scripts/migrate.py <path-to-maven-project> --dry-run
Overlay / dual-build — adds Gradle alongside Maven so both build systems work:
python3 scripts/migrate.py <path-to-maven-project> --mode overlay --dry-run
Overlay mode also appends Gradle entries to .gitignore and preserves all pom.xml files.
The script generates:
gradle/libs.versions.toml — version catalog with all dependencies, BOMs, and pluginssettings.gradle.kts — project name and module includesbuild.gradle.kts — root build file (and per-module for multi-module projects)gradle.properties — daemon, parallel, caching settingsReview --dry-run output first, then run without the flag to write files.
The script handles:
platform() dependenciesannotationProcessor configurationThe generated files are a starting point. Always review and adjust:
Version catalog (libs.versions.toml):
[bundles] for commonly grouped dependenciesBuild files (build.gradle.kts):
project(":module-name") dependencies (script cannot infer these)developmentOnly for Spring Boot DevToolsFor multi-module projects:
allprojects/subprojects blocks vs convention plugins (buildSrc)references/multi-module.md for patterns — prefer convention plugins for 5+ modulesspring-boot plugin only applies to bootable module(s)io.spring.dependency-management to all modules that need Spring BOM resolutionMaven profiles require manual conversion. The script adds comments identifying each profile.
See references/profiles.md for complete patterns:
project.hasProperty("name") checksgradle.properties defaultsJavaVersion.current() checksgradle wrapper --gradle-version=9.6.1 # check https://gradle.org/releases/ for current stable
./gradlew build
./gradlew dependencies # compare with: mvn dependency:tree
See references/gotchas.md section 9 for the full verification checklist.
The migration script provides a solid starting point but has these limitations that require manual intervention:
references/profiles.md)${property} resource filtering is not auto-configured; Gradle's processResources expand must be set up manuallymaven-publish plugin setup (POM metadata, repository credentials) is not generated${prefix}/${suffix} with multiple interpolations in a single value are not resolvedkotlin("jvm") but does not auto-detect whether KSP should replace kapt for annotation processingsettings.xml are not migrated (Gradle uses different credential mechanisms)maven-shade-plugin and maven-assembly-plugin configurations require manual conversion to Gradle's shadowJar or custom Jar tasksWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/maven-to-gradle:maven-to-gradlefrom maven-to-gradle
npx claudepluginhub adityamparikh/maven-to-gradle --plugin maven-to-gradleOther plugins' skills for the same job