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
[LOGGING-189] Fix Import-Package entry for org.slf4j. #188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cross reference: https://issues.apache.org/jira/projects/LOGGING/issues/LOGGING-189
pom.xml
Outdated
@@ -738,7 +738,7 @@ under the License. | |||
org.apache.log;version="[1.0.1, 1.0.1]";resolution:=optional, | |||
org.apache.log4j;version="[1.2.15, 2.0.0)";resolution:=optional, | |||
org.apache.logging.log4j;version="[2.0, 4.0)";resolution:=optional, | |||
org.slf4j;version="1.7.0, 3.0";resolution:=optional | |||
org.slf4j;version="[1.7.0, 3.0)";resolution:=optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the upper version should be 3.0.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I guess the author wanted all version between 1.7 and less than 3, i.e., all 2.x versions. Seems reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the other entries use the same number of parts for the lower and upper limits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the other entries use the same number of parts for the lower and upper limits.
I don't think that matter to OSGi a tall.
Hello @wilx |
You can use a BND library macro like I did there. It results in "[1.7.0,3)" which is fine with OSGi. |
While looking at the imports for the above, I noticed more possible problems. Like, the Is there a log4j2 version 3.x already? Because the constraint here |
@wilx |
Ping @wilx 😀 |
I just noticed that also the import of the commons-logging/src/main/java/org/apache/commons/logging/impl/Slf4jLogFactory.java Line 36 in bded390
This leads to classloading errors when it is attempted to load the |
pom.xml
Outdated
@@ -738,7 +738,7 @@ under the License. | |||
org.apache.log;version="[1.0.1, 1.0.1]";resolution:=optional, | |||
org.apache.log4j;version="[1.2.15, 2.0.0)";resolution:=optional, | |||
org.apache.logging.log4j;version="[2.0, 4.0)";resolution:=optional, | |||
org.slf4j;version="1.7.0, 3.0";resolution:=optional | |||
org.slf4j;version="[1.7.0, $(versionmask;+;${slf4j.version}))";resolution:=optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
org.slf4j;version="[1.7.0, $(versionmask;+;${slf4j.version}))";resolution:=optional | |
org.slf4j;version="[1.7.0, $(versionmask;+;${slf4j.version}))";resolution:=optional, | |
org.slf4j.spi;version="[1.7.0, $(versionmask;+;${slf4j.version}))";resolution:=optional |
Are there any updates on this change? If desired I can create an alternative PR to fix this. |
There are already beta version of 3.x that have no breaking changes in the API. However we decided recently that |
Co-authored-by: Piotr P. Karwasz <piotr@github.copernik.eu>
Thanks @garydgregory for pushing this forward.
Has this already been addressed anywhere else? |
Hello @HannesWell CC @ppkarwasz I do not know. Please test and/or provide a PR. I am about to create a release candidate for 1.3.1. I can always do a 1.3.2 but the turnaround on a release is at least 4 days. |
No description provided.