Skip to content

Add Java 9 Automatic Module Name in Manifest #1224

Closed

Description

@filiphr

Is this something that we want for 1.2.0.Final or we should do it in the next release?

Activity

  1. added this to the 1.2.0.Final milestone on Jun 13, 2017
  2. gunnarmorling commented on Jun 13, 2017

    @gunnarmorling
    Member

    Let's do it if there's a Java 9 build supporting that header available at the time of the release.

  3. jodastephen commented on Jun 20, 2017

    @jodastephen

    No need to wait for a Java 9 build now, the spec looks pretty set in stone.

    Where I do have concerns with a quick look is that the Java code in the core, core-jdk8 and core-common folders all have the same package name. If these are built into separate jar files, then they cannot be separate modules, because a package can only be allocated to one module.

  4. gunnarmorling commented on Jun 20, 2017

    @gunnarmorling
    Member

    Yes, not much risk to adding the header righ away, I guess.

    If these are built into separate jar files

    Users will only either depend on core or core-jdk8. core-common is pulled into the other two at build time of MapStruct (we use it to share common code between these two flavors of the MapStruct API JAR). So people won't end up with multiple modules containing the org.mapstruct package unless there's something wrong with their module path setup.

  5. gunnarmorling commented on Jun 27, 2017

    @gunnarmorling
    Member

    Java 9 b175 is out by now which supports the Automatic-Module-Name header. We're already making use of it in Bean Validation and Hibernate Validator.

  6. self-assigned this
    on Jul 8, 2017
  7. added a commit that references this issue on Jul 8, 2017
  8. agudian commented on Jul 8, 2017

    @agudian
    Member

    Gunnar fixed it, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions