Skip to content

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 nahsra requested a review from ryandens September 21, 2023 04:26
@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

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