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

Bug 544144

Summary: Use Import-Package for Apache dependencies
Product: [Technology] USSSDK Reporter: Carsten Reckord <reckord>
Component: GeneralAssignee: Project inbox <usssdk-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bsd, vkadlcik
Version: 1.1   
Target Milestone: 1.2   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/136312
https://git.eclipse.org/c/usssdk/org.eclipse.usssdk.git/commit/?id=a6f830774918c1b0b32e381bbce4192c59bbca36
Whiteboard:
Bug Depends on:    
Bug Blocks: 544137    

Description Carsten Reckord CLA 2019-02-05 09:45:52 EST
USSSDK currently uses Require-Bundle for its dependencies to Apache libraries. Please use Import-Package instead, and also add "uses" declarations to exported packages.

This serves two purposes:

1) Import-Package: Be more resilient towards HttpClient API being split across bundles (see e.g. 544139)

2) Import-Package + uses: Be more resilient towards multiple library versions in the runtime, and help the OSGi runtime wire everything correctly - this guards against classes exposed via different class loaders.
Comment 1 Eclipse Genie CLA 2019-02-05 09:48:27 EST
New Gerrit change created: https://git.eclipse.org/r/136312