Native libraries are not copied from resources/lib into <plugin name>/lib in buildPlugin task
BossyMr opened this issue · comments
What happened?
When running the buildPlugin task, native libraries located in resouces/lib are not moved into the outer /lib folder. As a result, these native libraries are not found by the PluginClassLoader, which only searches in the /lib. The task correctly copies jar libraries found in resources/lib.
Relevant log output or stack trace
No response
Steps to reproduce
Create a new plugin, and put a native library (either a .dll or .so) into the resouces/lib directory. Run the buildPlugin task and observe that the libraries are not present in /lib, but are still left in the /lib folder inside the plugin jar.
Gradle IntelliJ Plugin version
1.17.1
Gradle version
8.5
Operating System
Windows
Link to build, i.e. failing GitHub Action job
Thank you, that solved the issue!