I have created a custom module in sourceSets called as integration for keeping all my integration test cases. The configuration is working fine but the only project is the in the integration folder the resources folder is not Test Resources Root and java folder is not Test Sources Root. I want the intergration folder java and resources to looks exactly like the test module like as shown below.
In the above picture if you observe the java folder looks green under test folder but under integration folder java folder looks blue in color.
What I except: I want the java and resources folder in integration folder looks exactly like that of test folder. ie. If you observe in the screenshot my main and integration folders looks exactly the same. But instead I want the integration folder to make it look exactly like the test folder
My gradle sourceSets look like this
sourceSets {
integration {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
In IntelliJ I can change it by right clicking onto the integration>java folder Make Directory as> Test Sources Root
and
integration>resources folder Make Directory as> Test Resources Root
but I would like to know how to achieve this via build.gradle
Can anyone please help me on this

