lwjgl3 icon indicating copy to clipboard operation
lwjgl3 copied to clipboard

Publish Gradle Module Metadata with platform-specific runtime variants

Open jjohannes opened this issue 5 years ago • 2 comments

Hi from Gradle 👋

I was just checking how LWJGL3 is published and was delighted to see that you are already using the maven-publish plugin. I wanted to let you know that with Gradle 6 we are supporting a new metadata format called Gradle Module Metadata that would allow you to publish metadata that knows about jars containing native code and would allows Gradle to automatically pick the correct native jar. I actually used LWJGL as an example in our documentation to illustrate that use case:

https://docs.gradle.org/6.0-rc-3/userguide/component_metadata_rules.html#adding_variants_for_native_jars

I don't know how interesting this is for you, but if you get your build configured to publish Gradle Module Metadata correctly, it would make it really easy to use lwjgl3 as a dependency in a Gradle build like this (that's a sample repository I created to demonstrated some use cases).

I am happy to help here, if you are interested.

jjohannes avatar Nov 06 '19 16:11 jjohannes

I've been playing with Gradle Metadata and attributes, thanks to Jendrik help and past efforts in this direction

I'd like to pick up this issue back and provide a PR, if this is fine for you, @Spasi

elect86 avatar Apr 20 '24 15:04 elect86

@elect86 Sure, go ahead.

Spasi avatar Apr 20 '24 17:04 Spasi