Skip to content

Conversation

@bowbahdoe
Copy link
Contributor

@bowbahdoe bowbahdoe commented Sep 25, 2024

This adds a module-info to the final jar under META-INF/versions/9. It will not affect compatibility with Java 8

This will enable downstream libraries (I'm looking at https://github.com/bbottema/simple-java-mail now) to have module infos of their own and for consumers to use jlink.

@pivovarit
Copy link
Owner

Thanks, it looks good to me - let me double-check this, and if everything is fine, I'm releasing 1.6.1

@pivovarit pivovarit changed the title Add module info to final jar Add explicit module definition to a multi-release jar Sep 26, 2024
@pivovarit pivovarit self-requested a review September 26, 2024 06:32
@pivovarit pivovarit merged commit 5374c31 into pivovarit:master Sep 26, 2024
5 checks passed
pivovarit pushed a commit that referenced this pull request Sep 26, 2024
This adds a module-info to the final jar under `META-INF/versions/9`. It will not affect compatibility with Java 8

This will enable downstream libraries (I'm looking at https://github.com/bbottema/simple-java-mail now) to have module infos of their own and for consumers to use `jlink`.
pivovarit pushed a commit that referenced this pull request Sep 26, 2024
This adds a module-info to the final jar under `META-INF/versions/9`. It will not affect compatibility with Java 8

This will enable downstream libraries (I'm looking at https://github.com/bbottema/simple-java-mail now) to have module infos of their own and for consumers to use `jlink`.
@pivovarit
Copy link
Owner

I have just released 1.6.1 with explicit module definition - let me know if that helps (give it some time to appear in Central, though)

@bowbahdoe
Copy link
Contributor Author

image

Works just fine.

The whole "literally everything must be a module to use some tooling" thing is annoying, but sure does give me a task to do.

@pivovarit
Copy link
Owner

To be honest, I'm surprised it's not working out of the box with automatic modules

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