I've been using these answers to try to get a test class to be visible from subproject ":A:B" to ":A:C":
(https://discuss.gradle.org/t/gradle-test-classes-needed-in-another-sub-project/13365/2)
(Multi-project test dependencies with gradle)
Using any of these methods still gives me a java.lang.NoClassDefFoundError on Project B. I'm using gradle 7.2.
Is there another way to expose test fixtures in gradle?
You'd have to add a third module, which then can be referenced as
testImplementation project()
.