I'd like to exclude some tests from a srcSet in Gradle. Basically integration tests and unit tests have been mixed up (there are thousands).
I can tell which is which by looking at the content.
If the content contains some specific code I know it's an integration test.
How can I modify a srcSet like this:
sourceSets {
val test by getting
test.java.srcDirs("src")
}
to exclude certain files by content ?