Emil Kantis
09/10/2024, 12:32 PMJvmTestSuite
called B (and I already have one called A). B needs some of the code that exists in A, so I thought I would create a new Kotlin source set for the shared code and depend on it from both B and A, but I'm having trouble expressing this in gradle's Kotlin DSL..Emil Kantis
09/10/2024, 12:33 PMtestUtils
, which is created as such:
val testUtils by kotlin.sourceSets.creating {
kotlin.srcDir("src/testUtils/kotlin")
dependencies {
// ....
}
}
Emil Kantis
09/10/2024, 12:38 PMJvmTestSuite
with:
testing {
suites {
val integrationTest by registering(JvmTestSuite::class) {
dependencies {
implementation(sourceSets["testUtils"].output)
}
}
}
}
but this gives a null pointerAdam S
09/10/2024, 3:31 PMEmil Kantis
09/10/2024, 3:32 PMEmil Kantis
09/23/2024, 4:42 PM