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

Add module-info #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add module-info #28

wants to merge 2 commits into from

Conversation

kitd
Copy link

@kitd kitd commented Dec 18, 2024

Add module-info.java.

This packages Sierra as a Java 9 module, allowing it to be used in modular projects. Also, apps built with Sierra can be easily included in Jlink deployments, a benefit when running Swing-based apps on the desktop.

requires transitive java.desktop;

exports org.httprpc.sierra;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but this newline is not needed.

@@ -0,0 +1,6 @@
module sierra {
Copy link
Contributor

@gk-brown gk-brown Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on this SO discussion, it seems that the module name should be org.httprpc.sierra:

https://stackoverflow.com/questions/43192741/how-should-i-name-my-java-9-module

Copy link
Contributor

@gk-brown gk-brown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. What would be a good way to test it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants