[slf4j-dev] [Bug 75] Cyclic dependency in OSGi

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Nov 11 20:19:12 CET 2009


http://bugzilla.slf4j.org/show_bug.cgi?id=75


Hugues Malphettes <hmalphettes at intalio.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hmalphettes at intalio.com




--- Comment #11 from Hugues Malphettes <hmalphettes at intalio.com>  2009-11-11 20:19:11 ---
(In reply to comment #10)
That is perfect.

Ceki and I discussed on irc one improvement on the slf4j side:
the import of org.slf4j.impl should use the minimum version of slf4j with which
it is compatible: 1.5.5

<hmalphettes> OSGi in general will load the latest when it has the choice. So a
nice thing to do to stay compatible with implementations of slf4j.impl would be
to use the minimum version that slf4j.api is compatible with.
<ceki> in general slf4j versions 1.5.5 and above are all mutually compatible
<hmalphettes> then I would recommend using 1.5.5
<hmalphettes> for the Import-Package of org.slf4j.impl
<hmalphettes> this way other implementations that we are not aware of don't
need to make a new release where they only increment the version of the package
that they export.
<ceki> so if i understand correctly slf4j-api would
<ceki> export org.slf4j;version=${slf4j.version}
<ceki> import: org.slf4j.impl;version=1.5.5
<ceki> and logback would export
<ceki> org.sfl4j.impl;version=${latest officially released slf4j version}
<ceki> in slf4j-api, change
<ceki> export org.slf4j;version=${slf4j.version}
<ceki> to
<ceki> export org.slf4j;version=${project.version}

I'll attach a new patch with that small change.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the slf4j-dev mailing list