Skip to content

Provide OSGI support #362

Closed
Closed

Description

@bjmi

JSpecify annotations could also be used in OSGI environments if MANIFEST.MF would have bundle entries like e.g.

Bundle-ManifestVersion: 2
Bundle-Name: JSpecify annotations
Bundle-SymbolicName: org.jspecify.annotations
Bundle-Version: 0.3.0
Export-Package: org.jspecify.annotations
[...]

Please provide a solution and JSpecify annotations could be used out of the box.

Activity

  1. kevinb9n commented on Jan 13, 2023

    @kevinb9n
    Collaborator

    I'm OSGIgnorant! If it would be easy enough to send us a PR please do, otherwise thanks for giving us the main idea.

  2. chrisrueger commented on Dec 11, 2023

    @chrisrueger
    Contributor

    I will have a look if I can provide a PR

  3. netdpb commented on Jul 9, 2024

    @netdpb
    Collaborator

    Can you summarize what the impact of this would be? What would that let people do that they can't do without it?

    If we don't accept this PR before 1.0, would accepting it later be a breaking change in any way?

  4. chrisrueger commented on Jul 9, 2024

    @chrisrueger
    Contributor

    Can you summarize what the impact of this would be? What would that let people do that they can't do without it?

    As described in PR #428

    It helps and makes it easier for people to use jspecify in an Osgi environment.

    If we don't accept this PR before 1.0, would accepting it later be a breaking change in any way?

    Not sure but i would say no. No breaking change. It adds osgi metadata to the jar file which is irrelevant for other non-osgi users. But having it would be good for initial adoption osgi people would be grateful 😃

  5. bjmi commented on Jul 15, 2024

    @bjmi
    Author

    It is very welcome if Eclipse developers can also benefit from the JSpecify annotations right from the start.
    They can be used e.g. in JDT Null analysis in addition to or instead of annotations from org.eclipse.jdt.annotation.*
    This eliminates the need to subsequently repackage the artifacts with enriched OSGI information in MANIFEST.MF and
    helps to distribute and promote the library as they can be used out of the box.

    Would it make sense to link PR #428?

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions