Hello, how can we include the `org.jetbrains.kotli...
# kotlindl
a
Hello, how can we include the
org.jetbrains.kotlinx:kotlin-deeplearning-dataset
dependency for
commonMain
(multiplatform library) ? Thanks
I've tried the following without luck, currently using
0.5.0-alpha-1
j
kotlin-deeplearning-dataset
is not multiplatform currently. For which platforms do you want to use it?
a
Ok, currently we have a multiplatform library, we try to put as much code inside
commonMain
because we might need native in the future. But currently we only use JVM. Does that make sense to you?
j
I'm not sure I follow, could you explain in more detail, please?
a
Basically, right now, we have : 1 JVM Project 1 Multiplatform library Our goal is to put as much code inside
commonMain
inside the multiplatform library even if right now the only client is a jvm project. We might have a native project that will use the multiplatform library in the future. Currently we only have a JVM client, but I was asking in case we could put it in
commonMain
already.
j
But if a multiplatform library does not have a native variant, is it going to work with the native target?
What error is shown for the code on the screenshot?
a
Copy code
Execution failed for task ':core:core-frameworks:core-frameworks-entities:compileKotlinNative'.
> Could not resolve all files for configuration ':core:core-frameworks:core-frameworks-entities:nativeCompileKlibraries'.
   > Could not resolve org.jetbrains.kotlinx:kotlin-deeplearning-dataset:0.5.0-alpha-1.
j
I think we can make
dataset
in the
0-alpha-2
multiplatform (the plan is to have it this week).