milessabin / shapeless

Generic programming for Scala
Apache License 2.0
3.4k stars 533 forks source link

Generate `Automatic-Module-Name` attribute #1375

Open hubertp opened 2 months ago

hubertp commented 2 months ago

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.

hubertp commented 1 month ago

Any problem with this PR? This should unblock anyone who wants to use shapeless as a Java module, with a minimal effort.