auth0-java-mvc-common icon indicating copy to clipboard operation
auth0-java-mvc-common copied to clipboard

Add module-info.java

Open cowwoc opened this issue 1 year ago • 3 comments

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

cowwoc avatar Mar 12 '24 14:03 cowwoc

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 avatar Jan 15 '25 05:01 tanya732

@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.

cowwoc avatar Jan 15 '25 15:01 cowwoc

Hi @cowwoc,

Thank you for sharing the reference

tanya732 avatar Jan 31 '25 07:01 tanya732