Damiano Giusti
04/01/2019, 7:50 AMkotlin-multiplatform
plugin. The build passes, however the annotations and the test methods aren’t visible from test classes. I’m using the groovy build.gradle
commonTest {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-test-common"
implementation "org.jetbrains.kotlin:kotlin-test-annotations-common"
implementation "io.mockk:mockk-common:1.9"
}
}
I started by using testImplementation
but I received such error Could not find method testIplementation() for arguments [org.jetbrains.kotlin:kotlin-test-common] on object of type org.jetbrains.kotlin.gradle.plugin.mpp.DefaultKotlinDependencyHandler
, and then moved to implementation
.
Could someone give me a clue? Thanksthevery
04/01/2019, 8:27 AMDamiano Giusti
04/01/2019, 8:30 AMthevery
04/01/2019, 8:46 AMthevery
04/01/2019, 8:47 AMDamiano Giusti
04/01/2019, 8:47 AMcom.android.library
Damiano Giusti
04/01/2019, 8:48 AMsourceSets {
final def ktorVersion = "1.1.2"
final def coroutinesVersion = "1.1.1"
final def serializationVersion = "0.10.0"
commonMain {
dependencies {
api "org.jetbrains.kotlin:kotlin-stdlib-common"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serializationVersion"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutinesVersion"
implementation "io.ktor:ktor-client-core:$ktorVersion"
implementation "io.ktor:ktor-client-json:$ktorVersion"
}
}
commonTest {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-test-common"
implementation "org.jetbrains.kotlin:kotlin-test-annotations-common"
implementation "io.mockk:mockk-common:1.9"
}
}
...