Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348786 - move from Require-Bundle to Import-Package
Summary: move from Require-Bundle to Import-Package
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 355941
  Show dependency tree
 
Reported: 2011-06-08 13:37 EDT by Severin Gehwolf CLA
Modified: 2011-08-26 09:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).