Create jar without compiling with gradle
<p>I need to create several jars with different files in my project. I haven't used Gradle at all, I've been trying to learn about this but all I can see is ways of creating executable jars, I don't want that. Just a jar with files. </p>

<p>I have written this: </p>

<pre><code>task xmlbeansJar{
    sourceSets{
        main{
            java{
                srcDir '../bin'
                include "org/**/**, com/**/**"
            }
        }
    }
}
</code></pre>

<p>But I have some doubts. Does this take both, the files under bin/org and under bin/com? And, I don't think this creates a jar, does it? How do I put it in a jar? </p>

<p>Thank you! </p>