Since gradle 5.6 you can use testFixtures to solve the described problem:
https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures
↧
Composite Build and Classifier
↧
Since gradle 5.6 you can use testFixtures to solve the described problem:
https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures