I'm getting a strange error trying to integrate <K...
# apollo-kotlin
c
I'm getting a strange error trying to integrate Kotest into my KMP project.
Copy code
Caused by: java.lang.IllegalStateException: Apollo: specify 'packageName':
The bug happens when I add
jvmTest
dependencies
The bug happens when I try to add the dependencies block shown in the official example project:
Copy code
val jvmTest by getting {
    dependencies  {
        implementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion")
    }
}
Anyone dealt with this before?
m
That's unexpected 🤔 never heard of this before...
Do you apply the Apollo plugin in that module?
c
Yup!
m
And you set the package Name?
c
I'm using the
useVersion2Compat()
m
Yep, that should do it
Sounds like a stretch but the only thing I can think of is the kotest plugin somewhat eagerly configuring the apollo tasks (before you get a chance to set the package name)
c
Interesting. Would there be a way to eagerly set the name?
Figured it out. It was because I didn't have
jvm()
as a target 😅
Sorry for the confusion!
m
No worries, thanks for the update!