Canonical: https://toolipedia.app/maven-to-gradle-dependency-converter

# Maven to Gradle Dependency Converter

Convert pom.xml dependency blocks into Gradle Kotlin DSL or Groovy lines with scopes, classifiers and exclusions, and convert Gradle lines back to Maven.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Maven to Gradle Dependency Converter

## About Maven to Gradle Dependency Converter

Moving a project between Maven and Gradle means rewriting every dependency by hand. This converter reads dependency elements from a pom.xml and writes Gradle lines in Kotlin DSL or Groovy: compile becomes implementation, runtime becomes runtimeOnly, provided becomes compileOnly, test becomes testImplementation and import scope becomes platform(). Classifiers, test-jar, other types and exclusions are carried over, and properties in the pasted pom are resolved. The reverse direction turns Gradle coordinates, map notation and platform lines back into dependency elements.

## How to use Maven to Gradle Dependency Converter
1. Choose the direction and paste the dependency blocks or Gradle lines.
2. For Gradle output, pick Kotlin DSL or Groovy.
3. Copy the result and check the notes for versions that come from a parent pom or a BOM.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- maven to gradle dependency converter
- pom to gradle
- convert maven dependencies to gradle
- gradle to maven dependency
- kotlin dsl dependencies
- pom.xml to build.gradle

## Frequently asked questions

### What happens to dependencies without a version?

Maven takes the version from dependencyManagement or a parent. The converter leaves the version out and notes it, so you can add a platform line or a version in Gradle.

### Does it convert plugins and repositories?

No. Only dependency declarations are converted. Plugins, repositories and build settings differ too much between the tools for a safe automatic conversion.

### How are Gradle project and catalog dependencies handled?

Lines such as project(:core) or libs.guava have no Maven form, so they are skipped and listed in the notes for manual handling.

### Is Maven to Gradle Dependency Converter free?

Yes. Maven to Gradle Dependency Converter on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with Maven to Gradle Dependency Converter:
- [Dependency List Analyzer](https://toolipedia.app/topological-sort-calculator)
- [JSON to XML converter](https://toolipedia.app/json-xml-converter)
- [Dependency Tree Viewer](https://toolipedia.app/dependency-tree-viewer)
- [Lines of code counter](https://toolipedia.app/code-line-counter)
- [JSON to classes (Java, C#, Python, Go, Kotlin, Swift)](https://toolipedia.app/json-to-classes)
