The configuration option createSourcesJar allows to shade sources JAR, but there is no such option for test sources.
I see two solutions:
- Extend the semantics of createSourcesJar such that, when combined with shadeTestJar, is also creates the test sources JAR.
- Introduce a new configuration option createTestSourcesJar, similar to createSourcesJar.
The former is very intuitive, but it lacks the flexibility to create a JAR, sources JAR, test JAR, but no test sources JAR. The latter allows more flexibility.