Hi, I'm trying to use io.mockative.Mockable and it...
# multiplatform
g
Hi, I'm trying to use io.mockative.Mockable and it is supplying the @Mockable annotation. However, in my tests, I can't get these to be found:
Copy code
import io.mockative.mock
import io.mockative.of
I have tried everything that ChatGPT suggests... My build.gradle.kts:
Copy code
plugins {
    kotlin("jvm") version "2.2.0"
    id("com.google.devtools.ksp") version "2.2.0-2.0.2" // KSP for Kotlin 2.2.0
    id("io.mockative") version "3.0.1"
}

group = "io.isgi"
version = "1.0-SNAPSHOT"

dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
    implementation("io.mockative:mockative:3.0.1")
    kspTest("io.mockative:mockative-processor:3.0.1")

    testImplementation(kotlin("test"))          // kotlin.test API
    testImplementation(kotlin("test-junit5"))   // engine binding
}

tasks.test { useJUnitPlatform() }
kotlin { jvmToolchain(21) }
My gradle.properties:
Copy code
kotlin.code.style=official

#KSP
ksp.useKSP2=true
My setting.gradle.kts:
Copy code
rootProject.name = "kotlinNativeUtilsLib"

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()        // <-- needed so Gradle can find AGP for the Mockative plugin
        mavenCentral()
    }
}

plugins {
    id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}
Anybody see the problem or can share a repo? Thx, George
🧵 3