gradlex-org / extra-java-module-info

A Gradle 6.8+ plugin to use legacy Java libraries as Java Modules in a modular Java project
Apache License 2.0
99 stars 6 forks source link

Support addressing classified Jar via coordinates #130

Open jjohannes opened 2 months ago

jjohannes commented 2 months ago

For example, to patch io.netty:netty-transport-native-epoll with classifier linux-x86_64 you have to use the file name:

module("netty-transport-native-epoll-4.1.87.Final-linux-x86_64.jar", "io.netty.transport.epoll.linux.x86_64")

It should be possible to do it like this:

module("io.netty:netty-transport-native-epoll|linux-x86_64", "io.netty.transport.epoll.linux.x86_64")
jjohannes commented 2 months ago

Related: #129

Vampire commented 2 months ago

It should be possible to do it like this:

Don't forget a version for version-catalog accessor usage :-) Maybe a viable alternative: module("io.netty:netty-transport-native-epoll", "io.netty.transport.epoll.linux.x86_64") { classifier = "linux-x86_64" } or something like that.