Skip to content

Add/improve support for OSGI bundle metadata from bnd #3295

Description

@pombredanne

Bundle-Name, Bundle-SymbolicName and Bundle-Version would be a minimum.
There are also some of these already support in the Java MANIFEST code in https://github.com/nexB/scancode-toolkit/blob/95a5f3303543293aba33bf5b0d88263e042775d4/src/packagedcode/jar_manifest.py#L98

Some examples:

Manifest-Version: 1.0
Created-By: 11.0.14.1 (Eclipse Adoptium)
Built-By: root
Build-Jdk: 11.0.14.1
Implementation-Title: Open stuff like URLs, files, executables. Cross-pl
 atform
Implementation-Version: 8.5.0
Implementation-Vendor-Id: com.vaadin
Implementation-URL: http://vaadin.com/open
Bnd-LastModified: 1674112354024
Bundle-Description: Java port of https://github.com/sindresorhus/open
Bundle-Developers: vaadin;organization=Vaadin;organizationUrl="http://va
 adin.com"
Bundle-DocURL: http://vaadin.com/open
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0
Bundle-ManifestVersion: 2
Bundle-Name: Vaadin Open
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-SCM: url="https://github.com/vaadin/maven-integration/open",conne
 ction="https://github.com/vaadin/maven-integration.git/open",developer-
 connection="https://github.com/vaadin/maven-integration.git/open",tag=H
 EAD
Bundle-SymbolicName: com.vaadin.open
Bundle-Version: 8.5.0
Export-Package: com.vaadin.open;version="8.5.0"
Import-Package: javax.management,org.apache.commons.io;version="[1.4,2)"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Tool: Bnd-5.2.0.202010142003

Note the import and export package dependency declarations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions