Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348786

Summary: move from Require-Bundle to Import-Package
Product: z_Archived Reporter: Severin Gehwolf <sgehwolf>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 355941    

Description Severin Gehwolf CLA 2011-06-08 13:37:06 EDT
I think it would be a good to move to Import-Package over
Require-Bundle ([1][2]). Applicable to all Mylyn plug-ins.

[1] http://www.osgi.org/blog/2008/06/jsr-277-and-import-package.html
[2] http://www.osgi.org/blog/2006/04/misconceptions-about-osgi-headers.html

Thanks for having a look at this.
Comment 1 Steffen Pingel CLA 2011-06-08 13:45:48 EDT
Are you suggesting to do that for all dependencies or certain libraries in particular?
Comment 2 Severin Gehwolf CLA 2011-06-08 13:58:13 EDT
(In reply to comment #1)
> Are you suggesting to do that for all dependencies or certain libraries in
> particular?

I'd be more than happy if the entire Mylyn stack would use Import-Package in their manifests. That being said, I'm not quite sure what you mean by dependencies or certain libraries. It would be nice if you could use it for everything.
Comment 3 Steffen Pingel CLA 2011-08-26 09:19:44 EDT
I see the benefit of using Import-Package over Require-Bundle when multiple providers are available. In that case Import-Package gives the OSGi container more freedom to find a configuration that resolves and packagers more choice when compiling a distribution.

For the majority of our dependencies though where only a single implementation exists I find that Require-Bundle has advantages for managing dependencies. Bundles typically provide several packages and my concern is that dependency management would get more difficult and onerous at that level of granularity.

If you have specific requests for changing certain imports please file bug and we will be happy to consider them (such as bug 286609).