In a project with native libraries I created some ...
# community-support
g
In a project with native libraries I created some additional runtime configuration for each supported platform. Now, on the consumer side, I'd like to retrieve programmatically the right runtime configuration where to set the Os&Arch attributes to let Gradle successfully resolve the dependency. To say, in my consumer project, which is a compose multiplatform, the configuration to find is "desktopRuntimeClasspath" What's the best way to do that?
v
Have a look at what jjohannes die for the JavaFX Gradle plugin version 0.1.0.
There it is done with component metadata to patch the released metadata properly, but it should give you the right idea
Basically, you would create a feature variant for each configuration, setting the built-in os and architecture attributes, then a consumer can get the variants by these attributes