jean
05/10/2023, 7:40 AMcom.my.package
. The generated code is under the package <http://com.my|com.my>.package.<class name>
. While running my tests with js target (multiplatform project) I get no error and the tests pass. But when running the test with jvm target, they all fail with Unresolved reference: <my generated code>
. If I generate all the code under com.my.package
then I don’t have any issues at all with jvm target.
Am I suppose to add the custom package names to the source sets?glureau
05/11/2023, 6:53 AMimport
at the beginning of the file)
(I believe it's not required to update sourceSets with generated code anymore with latest KSP version, not tested tho, but you can easily try it)jean
05/11/2023, 5:25 PMglureau
05/11/2023, 6:48 PMkotlin {
sourceSets["jvmTest"].kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
}
jean
05/12/2023, 7:50 PM