I'm able to define a sourceSet
in Gradle using something like the following
sourceSets {
unitTest {
java {
srcDir 'src/unitTest/java'
}
resources {
srcDir 'src/unitTest/resources'
}
}
}
However, I do not seem to be able to define a Test source set using gradle. I can specify it manually via the UI, but when the gradle projects are refreshed, they are set again as a Source Set, rather than a Test Source Set.
Is there any way to define the source set in Gradle, and have Intellij pick up that it's a Test Source Set?