after publishing a library with natives using the ...
# community-support
g
after publishing a library with natives using the gradle metadata in this way, I declared on the consumer side the following attributes in order to have gradle properly resolve the right native (it's a kotlin compose project)
Copy code
configurations["desktopRuntimeClasspath"].attributes {
    // select a platform, will fail to compose a runtime classpath if non is selected
    attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named(OperatingSystemFamily.LINUX)) // or MACOS or LINUX
    attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named("x86-64"))   // or x86-64 or arm32 or arm64
}
now, how can I find it to load it via
System.load
?
if I print out the file in the "desktopRuntimeClasspath" configuration, it maps to the local repo I'm currently using
Copy code
task("dependency") {
    doFirst {
        println(configurations["desktopRuntimeClasspath"].files.find { "jni" in it.name })
    }
}
/home/elect/IdeaProjects/jni_notifications/repo/com/zoffcc/applications/jni_notifications/0.0.2/jni_notifications-0.0.2.jar
where would Gradle extract it, if it will ever do it? I couldn't find anything online regarding publishing and consuming natives of jvm libraries with Gradle Metadata