I've built a Java/Kotlin hybrid lib using kotlin-maven-plugin (v 1.2.21). The lib is actually a Spring Boot app (v 1.5.9)
Now, when I declare it as a dependency in another project I face strange issues : - My IDE (Intellij) is able to find the classes I need : auto-completion proposes me the classes, and I have no error - But when I try to build my application, I get compilation errors, saying the packages (and therefore the class) I am trying to import don't exist.
When I expand the jar in the IDE, I can see that the classes exist in the expected package, under a BOOT-INF/classes directory.
So I am a bit confused... is there a specific config to put in kotlin-maven-plugin , so that the generated jar can be used by others ?
Thanks