I have an app that consists of multiple project. Each has the following layout:
src/
test/
test/resources
Here is part of my gradle.build file with the custom sourceSets.
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
dependencies {
testCompile "junit:junit:4.11"
}
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDir "test"
}
resources {
srcDir "resources"
}
}
}
}
When I right click on the project in eclipse and "Refresh All" it does not make test/resources a source folder. Only src and test are source folders. Am I not understanding something? Do i have to add the resources to the classpath separately? Any help would be greatly appreciated, thanks!