-
-
Notifications
You must be signed in to change notification settings - Fork 677
Open
Description
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:
- in a bnd file, likely the input to Aqute bundler? https://github.com/StrasbourgEurometropole/Strasbourg-Next/blob/e5ce3383c2dd4f33f1fc5078851f0d52a170a2ab/modules/interest-viewer-web/bnd.bnd#L1 or https://github.com/vaadin/open/blob/0dc39d6b016b7844710916207ca1e1a3b5a9d330/bnd.bnd
- In a manifest likely the place for runtime/binaries artifacts https://github.com/menucha-de/App.AssignmentControl/blob/47d3ce7d9f6b8c47622c7e81c9e16a1407a47140/src/main/resources/MANIFEST.MF
- with license https://github.com/bjhargrave/transformer-bnd-analyzer-demo/blob/a7b7d1930f0a08eac3395c4a2c2185f9fa235699/cnf/build.bnd#L10
- Some data may live in OSGI-INF as in https://github.com/peramic/App.RFIDHardwareMonitor/blob/75635b266d60394e831f96aab3f023bca9452b5e/src/main/resources/classpath/OSGI-INF/havis.custom.harting.rfidhardwaremonitor.properties
- Another example with bnd and MANIFEST and POM:
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.