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

Generate Automatic-Module-Name attribute (#1375) #1400

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

joroKr21
Copy link
Collaborator

@joroKr21 joroKr21 commented Mar 1, 2025

  • Generate Automatic-Module-Name attribute

As it stands, Java 9 Platform Module System cannot infer module name from shapeless' jars due to cross compilation (underscores in _2.xx).
This simple change adds an Automatic-Module-Name attribute to MANIFEST, making it possible to require shapeless modules, rather than going through various repackaaging hacks.
A proper modularization would include definition of module-info.java but that's outside the scope.

  • Use shapeless Java module name for core

* Generate `Automatic-Module-Name` attribute

As it stands, Java 9 Platform Module System cannot infer module
name from shapeless' jars due to cross compilation (underscores
in `_2.xx`).
This simple change adds an `Automatic-Module-Name` attribute to
MANIFEST, making it possible to require `shapeless` modules, rather than
going through various repackaaging hacks.
A proper modularization would include definition of `module-info.java`
but that's outside the scope.

* Use shapeless Java module name for core

---------

Co-authored-by: Georgi Krastev <joro.kr.21@gmail.com>
@joroKr21 joroKr21 merged commit c10162f into milessabin:series/2.3 Mar 1, 2025
7 checks passed
@joroKr21 joroKr21 deleted the module-name branch March 1, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants