Hello, I would like to create a project with a mod...
# javascript
f
Hello, I would like to create a project with a module with kotlin/js and another module using ksp to create custom annotations but I'm having a lot of issues with gradle. Is this possible, and if so what is the best way to setup this kind of project? I was using this template from the official get started docs.
e
It is possible yes. Which Gradle issues specifically?
f
Hey, I have already tried many project versions 😅, my current approach is to have a submodule
kspcore
inside my non multi module kotlin/js project. Ignoring ksp dependencies I could not manage to get the main kotlin/js code to "find" the submodule
kspcore
. Is this project structure allowed to start with?
e
Mmm so basically you're saying the KSP module is in a completely separate project? What I mean is, are both modules registered under the same
settings.gradle.kts
file?
f
This is the structure: • kmp-js-wizard ◦ kotlin-js-store ◦ kspcore (submodule) ◦ src ◦ build.gradle.kts ◦ settings.gradle.kts and at the bottom of my settings.gradle.kts I have:
Copy code
rootProject.name = "kmp-js-wizard"
include(":kspcore")
So actually the main kotlin/js project is not included, I assume because its not a multi module project. The github link contains the same project that I have aside from some new classes.
e
Thanks! I'll have to take a look a the template repo to get a better idea. But for example, I have a KSP module with annotations that I use in other modules, which in turn are used by KSP to output custom code.
f
That sounds similar to what I want. Thank you for helping me 🙂