title: Maven dependency in a Gradle project
body: <p>I'm developing a project with gradle. My build file is almost empty so far:</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'eclipse'
  
  version = '0.1'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testCompile group: 'junit', name: 'junit', version: '4.+'
  }
  </code></pre>
  
  <p>My project depends on a Maven project. Precisely this project: <a href="http://git.eclipse.org/c/bpmn2/tree/org.eclipse.bpmn2" rel="nofollow">http://git.eclipse.org/c/bpmn2/tree/org.eclipse.bpmn2</a></p>
  
  <p>I've cloned this project into my workspace, but I don't know the best way to declare the dependency in my build.gradle file. This is what I've done so far:</p>
  
  <pre><code>dependencies {
      compile files ("C:/path/to/org.eclipse.bpmn2-0.7.0-SNAPSHOT.jar")
  }
  </code></pre>
  
  <p>But this way I have to manually build the maven project. Does somebody know a better way of doing this dependency management?</p>
  
  <p>I'm using <a href="https://github.com/SpringSource/eclipse-integration-gradle/wiki" rel="nofollow">Eclipse Gradle Integration</a> and I've noticed an interesting eclipse project property:</p>
  
  <pre><code>Gradle - Dependency Management
  [x] Remap Jars to maven projects (requires Gradle 1.1 and m2e)
  </code></pre>
  
  <p>This seems to do what I need. But I don't know how to use this feature...</p>
  
  <p>Thanks in advance.</p>