Skip to content

Provide Automatic-Module-Name #910

Closed

Description

@aholstenson

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.

Activity

  1. modified the milestones: 1.1 M2, 1.0.2, 1.0.3 on Aug 8, 2020
  2. rstoyanchev commented on Oct 6, 2020

    @rstoyanchev
    Contributor

    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.

  3. rstoyanchev commented on Oct 26, 2020

    @rstoyanchev
    Contributor

    Moving to backlog to allow more time for feedback.

  4. modified the milestones: 1.0.3, 1.x Backlog on Oct 26, 2020
  5. modified the milestones: 1.x Backlog, 1.1.1 on Feb 17, 2021
  6. yschimke commented on Apr 22, 2021

    @yschimke
    Member

    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

  7. added a commit that references this issue on May 13, 2021
    c37d82a
  8. rstoyanchev commented on May 13, 2021

    @rstoyanchev
    Contributor

    This is now superseded by the actual changes in #1007.

  9. removed this from the 1.1.1 milestone on May 13, 2021
  10. added a commit that references this issue on May 14, 2021
    c337cba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions