Migration from Gradle 4 to 7, Issue sharing test output between modules

Hi,

I am upgrading our multi module build from gradle 4.10 to 7.1 Kotlin DSL. Test module (Cucumber tests) is dependent on main module and its tests.

Test Module is dependent on core module,

Test Module configuration (Gradle 4)

    compile project(path: ":core", configuration: 'testCompile')
    // include test classes from core
    compile project(':core').sourceSets.test.output

Gradle 7 doesnt support getting sourceset directly from another module, also I cant direcly pull the “testImplementation” configuration from another module.

Please help