A plugin for JetBrains IntelliJ IDEA to convert pasted dependencies between different dependency managers, such as Gradle and Maven.
- Convert Maven dependencies to Gradle format (implementation, api, etc.)
- Convert Gradle dependencies to Maven format
- Support for various dependency scopes
- Automatic detection of dependency format
- Support for dependency exclusions in both formats
- Support for both Groovy and Kotlin DSL in Gradle
- Using the JetBrains Plugin Repository within your IDE (search for "Dependency String Converter")
- Download the plugin JAR from GitHub releases and install it manually
- Copy a dependency string from Maven or Gradle build file
- Paste it in your IDE
- The plugin will automatically convert the dependency to the target format based on your current file type
Maven:
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.16.0</version>
<scope>test</scope>
</dependency>
Gradle:
testImplementation('org.mockito:mockito-core:5.16.0')
Maven:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.2.3</version>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
Gradle:
implementation('org.springframework.boot:spring-boot-starter-web:3.2.3') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
Gradle Kotlin DSL:
implementation("org.springframework.boot:spring-boot-starter-web:3.2.3") {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-logging")
}
This project uses Gradle with the Gradle IntelliJ Plugin to build and test the plugin.
- JDK 17 or newer
- IntelliJ IDEA (Community or Ultimate)
./gradlew build
./gradlew runIde
Both debugger and IDEA logs might be used for plugin troubleshooting.
MIT License