@Version("1.0.0")
package com.example.api
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mar 16, 2015, at 08:17 , Neil Bartlett <njbar...@gmail.com> wrote:In bnd(tools) 3.0, we validate whether the packages you are using from each bundle on the build path are exported. For packages that are not exported we create the “discouraged access” marker.Unfortunately there are some packages that are only ever intended to be used at build time and so don’t need to be exported. The versioning annotation package in osgi.annotation-6.0.0.jar is an example.You can make the warnings go away by depending on the library as follows:-buildpath: osgi.annotation; version=6.0; packages=*However I don’t think this is acceptable and hope we can come up with a better solution before 3.0 is released.
Regards,NeilOn 16 Mar 2015, at 12:05, Kamesh Sampath <kamesh....@liferay.com> wrote:I just now updated my bndtools to 3.0.0-DEV, and when I tried to generate the API package i see that inpackage-info.java
@Version("1.0.0")
package com.example.api
is being shown with a Eclipse Warning marker the "@Version" is a discouraged access from osgi.annotation-6.0.0.jarWhy this sudden change from 2.5.x to 3.0.0, semantically i understand that version 2.5.x to 3.0.0 will have some incompatibility but then will be great if someone can explain :)-Kamesh--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mar 16, 2015, at 08:48 , Peter Kriens <peter....@aqute.biz> wrote:I think annotations need to be exported as well, they are clearly not private to the bundle?
On Mar 16, 2015, at 11:27 , Neil Bartlett <njbar...@gmail.com> wrote:Thanks BJ. Yes I suppose you are right. I haven't checked what we do with non-bundle jars on the build path but I think they shouldn't show the discouraged-access warning.
On Mar 16, 2015, at 08:49 , BJ Hargrave <b...@bjhargrave.com> wrote:On Mar 16, 2015, at 08:48 , Peter Kriens <peter....@aqute.biz> wrote:I think annotations need to be exported as well, they are clearly not private to the bundle?Yes. This is the fix I have made in the OSGi build. I should release it as 6.0.1 for the public to use.