Skip to content

Commit 2ca0b37

Browse files
authored
Add back exports to the org.eclipse.swt host (#1032)
Some projects, like BND tools, will avoid using require-bundle at great lengths. This becomes problematic when the APIs they want to use do not version there `Export-Package` properly. Many Eclipse projects, including SWT, do not version their API packages. They only version their individual bundles with respect to semantic versioning. For BND they resorted to using `Import-Package` with the `bundle-version` and `bundle-symbolic-name` of the host. This "worked" because the SWT API packages were defined in the `Export-Package` header of the host bundle. But now with PR #1008 this changed and the host bundle no longer defines the exported packages. The end result is BND tools is now broken and has many unresolvable bundles. Until this is sorted out, this PR simply adds back the `Export-Package` header of the SWT host. The longer term solution should be to properly version SWT API packages so that consumers of the API can properly use `Import-Package` to depend on the API.
1 parent c8d8944 commit 2ca0b37

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bundles/org.eclipse.swt/META-INF/MANIFEST.MF

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ Bundle-Version: 3.125.0.qualifier
66
Bundle-ManifestVersion: 2
77
Bundle-Localization: plugin
88
DynamicImport-Package: org.eclipse.swt.accessibility2
9+
Export-Package:
10+
org.eclipse.swt,
11+
org.eclipse.swt.accessibility,
12+
org.eclipse.swt.awt,
13+
org.eclipse.swt.browser,
14+
org.eclipse.swt.custom,
15+
org.eclipse.swt.dnd,
16+
org.eclipse.swt.events,
17+
org.eclipse.swt.graphics,
18+
org.eclipse.swt.internal,
19+
org.eclipse.swt.internal.image;x-internal:=true,
20+
org.eclipse.swt.layout,
21+
org.eclipse.swt.opengl,
22+
org.eclipse.swt.printing,
23+
org.eclipse.swt.program,
24+
org.eclipse.swt.widgets
925
Eclipse-ExtensibleAPI: true
1026
Bundle-RequiredExecutionEnvironment: JavaSE-17
1127
Automatic-Module-Name: org.eclipse.swt

0 commit comments

Comments
 (0)