HowTo: convert Maven to Gradle && Gradle to Maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MAVEN TO GRADLE */ | |
- Navigate to directory where the POM is located | |
- Run gradle init | |
> this will convert the Maven build to Gradle build (new settings.gradle & one or more build.gradle files) | |
/* GRADLE TO MAVEN */ | |
- Add Maven plugin to build.gradle file | |
ex. | |
apply plugin: 'java' | |
apply plugin: 'maven' /// here | |
group = 'com.blah.app' | |
version = '0.1-SNAPSHOT' | |
dependencies { | |
compile 'commons-lang:commons-lang:2.3' | |
} | |
- run Gradle install in root level directory | |
ex. | |
gradle install | |
// pom-default.xml will be created in build/poms subfolder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment