Maven to Gradle Kotlin DSL Converter

Convert Maven coordinates or dependency XML into Gradle Kotlin DSL.

0 characters
0 characters

About This Tool

This Maven to Gradle Kotlin DSL converter turns Maven coordinates into copyable dependency declarations for build.gradle.kts files.

Enter one dependency per line using group:artifact:version, or paste a standard Maven <dependency> block. The conversion runs locally in your browser.

Benefits and Use Cases

  • Convert Maven coordinates into implementation("...") syntax
  • Generate api, testImplementation, debugImplementation, and other configurations
  • Convert several dependencies in one step
  • Keep optional Maven classifiers in the generated notation
  • Copy Android and Kotlin dependencies directly into a Kotlin DSL build file

How to Use

  1. Enter a coordinate such as androidx.core:core-ktx:1.15.0.
  2. Add one dependency per line when converting multiple libraries.
  3. Choose the Gradle configuration.
  4. Click Generate Gradle and copy the result.

Android Example

This Maven coordinate:

androidx.core:core-ktx:1.15.0

becomes:

implementation("androidx.core:core-ktx:1.15.0")

For a test-only library, select testImplementation to generate the matching configuration.

Frequently Asked Questions

Which Maven format is supported?

The converter accepts group:artifact:version and group:artifact:version:classifier formats. It also accepts a Maven <dependency> XML block.

Can I convert multiple dependencies?

Yes. Put each Maven coordinate on its own line and the tool generates one Kotlin DSL declaration per line.

Does this modify my Gradle project?

No. It generates text in your browser and does not access or change local project files.

Which Gradle configurations are available?

The tool supports implementation, api, compileOnly, runtimeOnly, testImplementation, androidTestImplementation, and debugImplementation.