Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularity Support (OSGi/JMPS) #218

Open
3 tasks done
stachu540 opened this issue Oct 13, 2020 · 0 comments
Open
3 tasks done

Modularity Support (OSGi/JMPS) #218

stachu540 opened this issue Oct 13, 2020 · 0 comments

Comments

@stachu540
Copy link
Contributor

stachu540 commented Oct 13, 2020

Prerequisites

  • If this is a question/suggestion, I have already considered discuss it on Discord Server
  • This issue specifically has something to do with Twitch4J
  • I have attempted to look for similar issues already

Description

OSGi provides dynamic modular system in runtime. That is a good feature for programmers who meets the OSGi specification.

JMPS (aka. Jigsaw) is a JDK9+ project. Improving code using JMPS helps solving some (not yet existed) security issue. This is for programmers who have meet modular system, implemented since JDK9. JMPS supported in gradle 6.4.

Solutions

For OSGi

  1. Create twitch4j-osgi
  2. write implementation for osgi module: more about OSGi modularity

For JMPS

  1. create module-info.java for each existed project into root package
  2. write module using followed example
  3. check all dependencies which have modularity system implemented into library.
  4. test units doesn't need modularity when you are testing.

Alternatives

For OSGi - Provide OSGi guide to the documentation, if it is not possible to reporduce feature.

Additional context

This is a proposal changes to discuss. Of course I can provide some codes for Jigsaw. But I am newbie with OSGi.

@stachu540 stachu540 changed the title Modularity Support (OSGi/Jigsaw) Modularity Support (OSGi/JMPS) Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants