Aaron Todd
06/15/2020, 1:36 PM// project A
val integrationTest by creating {
kotlin.srcDir("it")
dependsOn(getByName("jvmTest"))
dependencies {
implementation(project(":test-utils", "jvmMainImplementation"))
implementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
}
}
I've tried various incantations of depending on the "test-utils" project including custom configurations. I was working on setting up a test Jar output but also having trouble with Gradle Kotlin DSL and MPP.
// project "test-utils"
kotlin {
sourceSets {
jvmMain {
dependencies {
api("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
api("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
...
}
}
}
}
I can't tell which I'm fighting, Gradle Kotlin DSL, Kotlin MPP, or both.
The generic problem: How to setup a custom (test) source set and depend on another project that provides common test utils using Kotlin MPP? I've seen examples of this without Kotlin MPP but that seems to be adding an extra layer that I haven't connected. Any ideas or examples to look at?janvladimirmostert
07/02/2020, 10:09 PMAaron Todd
07/07/2020, 3:11 PMjanvladimirmostert
07/07/2020, 3:13 PMAaron Todd
07/07/2020, 3:13 PM