Skip to content

Instantly share code, notes, and snippets.

@infomaven
Created December 19, 2016 20:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
HowTo: convert Maven to Gradle && Gradle to Maven
/* 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