Shadowing oshi will result in the properties being renamed #2633
sorin-florea
started this conversation in
General
Replies: 1 comment 1 reply
-
Hey @sorin-florea, thanks for raising this issue. I'm not sure I understand the full problem here. OSHI's properties are named as strings in the code which are not tied to the project structure in any programmatic way. It seems from your report that Gradle Shadow renames these strings based on assumptions about package structure. While generally a reasonable default, it's clearly wrong in this case. If there's a workaround, I would expect that Gradle Shadow would have some ability to disable or override this automatic assumption. Open to any changes needed, but at first glance this does not seem to be OSHI's problem to solve. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using Gradle shadow, relocating
oshi
tocom.relocated.oshi
will result inString str = GlobalConfig.get("oshi.util.proc.path", "/proc");
being changed to
String str = GlobalConfig.get("com.relocated.oshi.util.proc.path", "/proc");
This is wrong since the properties will not be renamed. Is there any workaround for this issue?
Beta Was this translation helpful? Give feedback.
All reactions