Setting source directory for only one child


(Reginaldas Raila) #1

Hello all, i run into a problem. if i set sourceSet in parent build file like so

sourceSets {
        main {
            resources {
                srcDir 'src/main/java'
                srcDir 'src/main/resources'
            }
        }
        test {
            resources {
                srcDir 'src/main/java'
                srcDir 'src/main/resources'
                srcDir 'src/test/java'
            }
        }
    }

some of my tests which dont use any resources fails. but if i set it into my child build file it gets ignored and my tests with resources fails.


(sethgoings) #2

Can you explain your problem a bit more thoroughly?