Add module-info.java
Checklist
- [X] I have looked into the Readme and the Examples, and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
Add support for Java Modules
Describe the ideal solution
Add module-info.java to this library
Alternatives and current workarounds
No response
Additional context
No response
Hi @cowwoc,
Thank you for your suggestion! Currently, our project is using Java 8, and module support (introduced in Java 9 with module-info.java) is not compatible with this version. Therefore, we're unable to add it at the moment. However, it's definitely on our roadmap, and we'll consider adding module-info.java when we upgrade to a version of Java that supports modules, most likely in a future release.
@tanya732 Actually, that is not true. You can add Java Module support while maintaining backwards compatibility for Java 8. Just add the module-info.class to META-INF/versions/9. See https://blog.gradle.org/mrjars#how-to-create-a-multi-release-jar-with-gradle for more information.
Hi @cowwoc,
Thank you for sharing the reference