https://kotlinlang.org logo
#gradle
Title
# gradle
z

zt

11/09/2023, 11:04 PM
Are there any examples of using gradle to build JNI for Kotlin JVM? Android gradle plugin has a nice cmake gradle dsl but I cant find anything like that for gradle on the JVM
z

zt

11/10/2023, 3:14 AM
oh interesting. I notice that it hasn't had any recent development though, not sure if that's gonna be a problem
@ephemient Do you know how I would go about publishing a library using this plugin? I'm unsure how to do different architecture artifacts
z

zt

11/14/2023, 8:54 PM
Oh ok. I also thought maybe I could support android too somehow?
e

ephemient

11/14/2023, 8:57 PM
Android requires a whole different packaging structure, via
aar
instead of binaries embedded inside
jar
. you should probably use the Android tooling to do that
4 Views