#StackBounty: #gradle #dependencies #source-sets Gradle: using resources in a dependency jar as a sourceset

Bounty: 50

Suppose I have a build.gradle thus:

dependencies {
    compile 'com.group:some-app:1.0.1'
    compile 'com.group:some-app:1.0.1:sources'

sourceSets {
    main {
        other {
             srcDir 'src/main/other'

So some-app-1.0.1-sources.jar has source files in it – not Java files, but files from which Java can be generated.

How do I include those files in sourceSets ?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.