Re: [jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Felix Meschberger
The problem, really is that scope=compile on the utils bundle is the viral thing which cannot be undone by doing scope=provided in the consumer of the utils bundle … (unless you explicitly exclude the dependency or do the ordering trick) Regards Felix > Am 28.02.2017 um 15:02 schrieb

Re: [jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Carsten Ziegeler
Well I think provided is way more correct, from the maven docs: "This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime." and osgi core is provided by the container at runtime. Carsten Guillaume Nodet wrote > I disagree. Semantically,

Re: [jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Guillaume Nodet
I disagree. Semantically, utils dependencies are actually at scope=compile. However an osgi bundle should depend on utils with a scope=provided because it has to embed the packages it needs, so it makes sense to not convey this dependency. 2017-02-28 14:49 GMT+01:00 Felix Meschberger

Re: [jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Felix Meschberger
Hi The problem seems that utils actually declares its own dependencies with scope=compile which pollutes the transitive dependency space. The fix is for utils to declare the dependencies as scope=provided so that these dependencies are not transitive. Regards Felix > Am 28.02.2017 um 11:30

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1588#comment-1588 ] David Leangen commented on FELIX-5571: -- Well well well... I had no idea that ordering mattered! Ok,

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887770#comment-15887770 ] Carsten Ziegeler commented on FELIX-5571: - ok, then you have two options: a) put the dependency to

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887753#comment-15887753 ] David Leangen commented on FELIX-5571: -- It is in the Activator. Actually, I did. I added the

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887735#comment-15887735 ] Carsten Ziegeler commented on FELIX-5571: - Just declare the dependency as "provided" > Replace

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread Guillaume Nodet (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887729#comment-15887729 ] Guillaume Nodet commented on FELIX-5571: How does a dependency from utils to core affect the json

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887715#comment-15887715 ] David Leangen commented on FELIX-5571: -- Unfortunately, utils has a dependency on core 4.1.0, which is

[jira] [Commented] (FELIX-5571) Replace JSONParser in Serializer with the new one from utils

2017-02-28 Thread David Bosschaert (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887582#comment-15887582 ] David Bosschaert commented on FELIX-5571: - That would be great, +1! > Replace JSONParser in