Gradle multiple jars from single source folder with different dependencies
<p>I am working on one gradle script where I need to compile the source code two times but with different dependencies.</p>

<p>First time I need create a jar file with dependencies for e.g.
 compile "javax.servlet:servlet-api:2.5"</p>

<p>and next jar file should compile with other dependencies for e.g.
 compile "a.b:b:3.4"</p>

<p>How we could achieve this?</p>