Hi, I'm facing a problem with my Kotlin Multiplatf...
# gradle
a
Hi, I'm facing a problem with my Kotlin Multiplatform library. Here's what my project structure looks like:
Copy code
Root project 'Cordex'
+--- Project ':annotations'
\--- Project ':ksp'
The project builds fine and I'm able to publish it to Maven local without any issues. But when I try to import it into another project, it fails during the
:compileKotlinMingwX64
task with the following error:
Copy code
> Could not resolve all files for configuration ':mingwX64CompileKlibraries'.
   > Could not find io.github.vyfor:annotations:0.1.0.
     Searched in the following locations:
       - file:/C:/Users/1/.m2/repository/io/github/vyfor/annotations/0.1.0/annotations-0.1.0.pom
       - <https://europe-west3-maven.pkg.dev/mik-music/kord/io/github/vyfor/annotations/0.1.0/annotations-0.1.0.pom>
       - <https://oss.sonatype.org/content/repositories/snapshots/io/github/vyfor/annotations/0.1.0/annotations-0.1.0.pom>
       - <https://repo.maven.apache.org/maven2/io/github/vyfor/annotations/0.1.0/annotations-0.1.0.pom>
       - <https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/vyfor/annotations/0.1.0/annotations-0.1.0.pom>
     Required by:
         project : > io.github.vyfor:cordex:0.1.0 > io.github.vyfor:cordex-mingwx64:0.1.0
How can I possibly resolve this?
Here's the
Cordex
library's top-level build file:
:annotations
submodule is used by both root and
:ksp
modules.
a
You'll have to publish your annotations artifact too
a
I've thought about it but it's not meant to be used outside of the library itself. Is that the only option?
Solved it by moving them to the root module. Thanks!