Hello all, I've been hacking on GTK bindings for K...
# kotlin-native
v
Hello all, I've been hacking on GTK bindings for Kotlin Native this holiday period as a way to deep-dive in both KN and GTK/GNOME and it has been a great experience. One of the things I'm currently looking at is how I can include my KDoc documentation in the published libraries using Gradle (publish to mavenLocal for now). Is this supported?
b
Klibs come with kdoc embedded so you don't need to do anything extra
Out of curiosity, are you using gir to generate bindings or just wrapping stuff manually?
v
I was looking into it more right now and it seems the sources jars are available in my ~/.m2 repository. But IntelliJ doesn't seem to pick them up when including the library in another project.
No I'm not using gir, it's mostly manual now because I'm experimenting a lot and using it as a way to learn about gobject/glib etc.
b
Did you add mavenLocal repo on the consumer project?
v
yes, and including/using the library in the consumer project works fine.
b
Also you might need to publish sources jar as well for klib kdocs to work
v
I was looking into that right now based on the ktor repository, since those seem to work.
b
Keep in mind that maven local has a lot of edge cases when compared to real repo
I'd suggest spinning up local maven server instead or just using gradle's included builds
v
I'll have a look. thanks
b
Good luck
v
After setting up artifactory for testing it seems to work fine. So my original issues were most likely due to mavenLocal
j
I've experienced the same issue with kdocs as well as viewing source not working with maven local dependencies. My understanding is these are bugs specific to maven local.