Description
I'm trying to use the gradle javacpp platform plugin to incorporate platform-specific artifacts into a project, and it seems that the plugin is not downloading the platform-specific artifacts at all to be incorporated into the build.
See also atsushieno/ktmidi#98
To focus in on the problem (as highlighted in the issue linked above), platform-specific artifacts are published on maven (visible here) but they are not pulled into the build as expected.
I've made a simple example project to illustrate the issue:
https://github.com/rkechols/ktmidi-demo
Reproducing the issue should be as simple as cloning that repository, and running ./gradlew run
, which gives output like this:
$ ./gradlew run
Type-safe project accessors is an incubating feature.
> Configure project :composeApp
platform = windows-x86_64
> Task :composeApp:run
osName: windows 11
Warning: Version of dev.atsushieno:libremidi_javacpp could not be found.
Failed to use LibreMidiAccess: java.lang.UnsatisfiedLinkError: no jnilibremidi in java.library.path: C:\Program Files\Eclipse Adoptium\jdk-21.0.6.7-hotspot\bin;C:\WINDOWS\Sun\Java\bin;<truncated>;.
Warning: Version of dev.atsushieno:rtmidi_javacpp could not be found.
Failed to use RtMidiAccess: java.lang.UnsatisfiedLinkError: no jnirtmidi in java.library.path: C:\Program Files\Eclipse Adoptium\jdk-21.0.6.7-hotspot\bin;C:\WINDOWS\Sun\Java\bin;<truncated>;.
Using JvmMidiAccess as last resort
# of input devices via jvm: 1
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.9/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 3s
11 actionable tasks: 1 executed, 10 up-to-date
My primary platform for testing is Windows 11 x86_64, but I also have Linux and macOS systems available to test on that experience the same issue.
I'm not sure whether this is actually a problem with gradle-javacpp, a problem with the artifacts/libraries from dev.atsushieno
I'm trying to use, or a problem with my project setup, but I'd much appreciate help narrowing down the problem from someone well-versed with gradle-javacpp.