You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Automatic-Module-Name in the manifest of the published JAR-files would improve Java 9+ compatibility when using modules. Currently you will receive warnings about using an unstable name derived from the module's file name.
Motivation
Targeting Java 9+ is becoming more common and being able to use RSocket while also using Java modules would be beneficial to those projects.
Desired solution
Set an Automatic-Module-Name for JARs.
Considered alternatives
A full module-info.java for every project could also be added, but is more complicated while also keeping Java 8 support.
For now the low hanging fruit is to declare an "Automatic-Module-Name" in the MANIFEST just like Reactor and Netty have done.
I propose using a filename convention which is also what Java's ModuleFinder picks by default:
rsocket.core
rsocket.load.balancer
rsocket.micrometer
rsocket.transport.local
rsocket.transport.netty
I am aware of the recommendation to use reverse DNS naming based on the root package but there is quite a bit of divergence on among libraries this including Reactor which uses the filename convention and Netty which uses reverse DNS naming but based on module names rather than packages. Also modules (rsocket-core included) often have more than one top-level package.
Activity
rstoyanchev commentedon Oct 6, 2020
For now the low hanging fruit is to declare an "Automatic-Module-Name" in the MANIFEST just like Reactor and Netty have done.
I propose using a filename convention which is also what Java's ModuleFinder picks by default:
rsocket.corersocket.load.balancerrsocket.micrometerrsocket.transport.localrsocket.transport.nettyI am aware of the recommendation to use reverse DNS naming based on the root package but there is quite a bit of divergence on among libraries this including Reactor which uses the filename convention and Netty which uses reverse DNS naming but based on module names rather than packages. Also modules (
rsocket-coreincluded) often have more than one top-level package.rstoyanchev commentedon Oct 26, 2020
Moving to backlog to allow more time for feedback.
yschimke commentedon Apr 22, 2021
Are we happy with this approach now? Seems like something we should be doing given we are coming up to a second LTS post JDK 9
Example from okhttp as well https://github.com/square/okhttp/blob/f8fd4d08decf697013008b05ad7d2be10a648358/mockwebserver-junit4/build.gradle
Set an "Automatic-Module-Name" for each module
rstoyanchev commentedon May 13, 2021
This is now superseded by the actual changes in #1007.
Set an "Automatic-Module-Name" for each module