Hello, how does one configure test dependencies be...
# gradle
p
Hello, how does one configure test dependencies between two modules in kotlin gradle dsl. With groovy i used to do: ModuleA build.gradle:
Copy code
task jarTest(type: Jar) {
    from sourceSets.test.output
    classifier = 'test'
}

configurations {
    testOutput
}

artifacts {
    testOutput jarTest
}
ModuleB build.gradle:
Copy code
testImplementation project(path: ':ModuleA', configuration: 'testOutput')
t
why not create separate module for shared test code?
p
why is a module better?
t
if this test code is not only used in one module, but kind of abstract - share it via separate module that can be easily consumed in any other module via
testImplementation project(":shared-test")