-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Regression] commons-configuration2 is pulled in as a required dependency #1352
Comments
I am not certain this is a bug. I believe the code started as optional, but later became required, but the optionality was not removed from the code. Perhaps the "action item" is to remove the above reflection / if statement from the code itself? |
Maybe someone else can chime in? |
Maybe not a bug but a code smell? Perhaps the required dependency should be moved into |
I remember... it's an OSGi warning from the bnd plugin |
I will try a PR to fix it then... thanks for your research @fpapon |
May be just adding the dependency in |
The warning from the bnd plugin comes from these lines: Line 82 in 9507f24
I will make some test in Karaf to see why we need them. I think we don't need to add these import package because we are not using them. |
No need. Making it optional in core worked and there is no warning |
@papegaaij Thank you for the report! This snuck in during build / code cleanup |
No problem. I just happen to notice it because commons-configuration2 triggered a failure due to its dependency on a javax API. Thanks for fixing this! |
[#1352] bugfix: made commons-configuration2 optional in shiro core
Search before asking
Environment
This is a dependency of shiro-core, so it's for every environment.
Shiro version
2.0.0
Regression from:
1.13.0
What was the actual outcome?
Observe
commons-configuration2
in the output below:What was the expected outcome?
Commons-configuration2 should be made optional. The code here already supports it being optional:
shiro/config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java
Lines 782 to 789 in 36cad48
How to reproduce
see above
Debug logs
No response
The text was updated successfully, but these errors were encountered: