maven project as dependency in gradle project
<p>I have a project which is using Gradle as build tool and a second subproject which is using Maven's POM. I don't have the freedom of changing build tool on the subproject.</p>

<p>What I want to achieve is to add my project with Maven POM as dependency on my Gradle project.</p>

<p>Where root (current dir) is my project with Gradle and contains the <code>build.gradle</code>, the Maven project is under <code>vendor/other-proj/</code> with POM file just under that directory.</p>

<p>I have tried these variations on my <code>build.gradle</code> file:</p>

<p>1st try:</p>

<pre><code>include("vendor/other-proj/")
project(':other-proj') {
    projectDir = new File("vendor/other-proj/pom.xml")
}

dependencies {
    compile project(':other-proj')
}
</code></pre>

<p>2nd try:</p>

<pre><code>dependencies {
    compile project('vendor/other-proj/')
}
</code></pre>

<p>3rd try:</p>

<pre><code>dependencies {
    compile project('vendor/other-proj/pom.xml')
}
</code></pre>

<p>4th try:</p>

<pre><code>dependencies {
    compile files 'vendor/other-proj/pom.xml'
}
</code></pre>

<p>I can't find anything related on the web, it seems most Gradle/Maven use cases are affected by publishing to Maven or generating POM, but I dont want to do any of those.</p>

<p>Can anybody point me to right direction?</p>