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

Be available as a Java Module #8

Closed
wants to merge 6 commits into from
Closed

Be available as a Java Module #8

wants to merge 6 commits into from

Conversation

nahsra
Copy link
Contributor

@nahsra nahsra commented Sep 21, 2023

In order to be accessible from programs using the JPMS, we needed to register imports/exports. That broke some of the build tooling and forced an upgrade to Java 11, so those changes are also here.

@@ -0,0 +1,10 @@
/** Export our package so that it can be used by other modules. */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you're wondering, Mark Reinhold has weighed in and said the module names should be the core package name. This is not what Java did for their own modules, but whatever.

@nahsra
Copy link
Contributor Author

nahsra commented Sep 21, 2023

And if you're wondering about testing -- well, JUnit will not work from the command line unless you correctly configure the module settings. =)

<artifactId>java18</artifactId>
<version>1.0</version>
</signature>
<source>11</source>
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer release to source and target. It does the same thing, but also includes the functionality that the animal sniffer was giving you (makes sure you don't use an API not available in the release you're targeting).

<version>1.0</version>
</signature>
<source>11</source>
<target>11</target>
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't be too quick to abandon the Java 8 users. We can try modulemaker maven plugin to generate the module-info, so that we don't need to upgrade our source to 11.

@nahsra
Copy link
Contributor Author

nahsra commented Sep 28, 2023

This is superseded by #9

@nahsra nahsra closed this Sep 28, 2023
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