I need to filter some classes based on package name: /tests/, but I have also a buisness function that contains ‘.test.’ in its package name. With Maven, I put an explicit inclusion AFTER the exclusion, and that put the required ‘.test.’ package in my sourceSet or equivalent.
In my gradle.build I do the following but with not the Maven behaviour:
All the content of ‘com/toto/core/tests/extensionjunittest/*.java’ is filtered and not present in the compilation result.
How can I make the same function in Gradle? thanks all!