You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Port the fix from NixOS/nixpkgs#358670 so that it's applied via gradle.properties
Description
Gradle introduced a feature lately that required pkgs.udev to be available. While this was fixed in nixpkgs for installations managed via Nix, most users manage Gradle by means of the Gradle wrapper. The result of this is that installations managed by the Gradle wrapper still suffer from libudev not being available thus logging on each invocation:
Did not find udev library in operating system.
Some features may not work.
To fix this, the jna.library.path system property can be configured to include a reference to pkgs.udev. I've done this for my personal configuration here: britter/nix-configuration@21adf57
This fixes the issue for Gradle wrapper installation because they honor the configuration from $GRADLE_HOME/gradle.properties.
The text was updated successfully, but these errors were encountered:
I've tried to add this, but failed to get the tests working. Obviously adding something to the settings attrSet of the gradle module will result in something always being written to gradle.properties. This makes the gradle-empty-settings test fail. I tried to fix that by stubbing udev the same way we stub other packages here. However stubbing udev causes the build to fail because other required libraries can't be built. So I end up not having a clue how to correctly test this.
Also I wonder how this should work for a user. I think we need to configure the settings freeform type to have systemProp.jna.library.path be a listOf package, so it composes in case the users adds additional libraries. I also wonder whether there should be a config flag to deactivate adding udev in case somebody does not want that (for whatever reason).
Port the fix from NixOS/nixpkgs#358670 so that it's applied via
gradle.properties
Description
Gradle introduced a feature lately that required
pkgs.udev
to be available. While this was fixed in nixpkgs for installations managed via Nix, most users manage Gradle by means of the Gradle wrapper. The result of this is that installations managed by the Gradle wrapper still suffer from libudev not being available thus logging on each invocation:To fix this, the
jna.library.path
system property can be configured to include a reference topkgs.udev
. I've done this for my personal configuration here: britter/nix-configuration@21adf57This fixes the issue for Gradle wrapper installation because they honor the configuration from
$GRADLE_HOME/gradle.properties
.The text was updated successfully, but these errors were encountered: