hidden-secrets-gradle-plugin icon indicating copy to clipboard operation
hidden-secrets-gradle-plugin copied to clipboard

How to add the native lib to JUnit tests

Open pjvds opened this issue 11 months ago • 0 comments

The hidden secrets plugin is working for us as a charm. But as soon as we want to get a secret from a JUnit unit test it fails with:

no secrets in java.library.path: /Users/me/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
java.lang.UnsatisfiedLinkError: no secrets in java.library.path: /Users/me/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

I assume this is because the native libs are missing in the library path. Is there any way to easily add them?

pjvds avatar Sep 19 '23 08:09 pjvds