title: How to reference a maven project in gradle project for eclipse?
body: <p>I'm using eclipse and I'm new to gradle.
  I have imported a maven project <a href="https://github.com/nuvolabase/orientdb" rel="nofollow">OrientDB</a> into the eclipse workspace.
  Then i created a new java project in this workspace, and a gradle build file.</p>
  
  <p>How do I reference the maven multiprojects to use them inside my own java-eclipse-project managed with gradle? Can some one provide me a code snippet for the gradle build file please?</p>
  
  <p>I tried to manipulate the classpath, but that didn't work.</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'eclipse'
  
  eclipse {
  classpath {
    file {
       beforeMerged { classpath -&gt;
               classpath.entries.add "/orientdb"
           }
  
        }
      }
  }
  </code></pre>
  
  <p>Think I misunderstood the docs, but have no clue how to do it right.</p>
  
  <p>Note: I can not use the libraries from maven repository, because I need the new Version.</p>