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
{{ message }}
Repository navigation
Add Java 9 Automatic Module Name in Manifest #1224
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.
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.
Activity
gunnarmorling commentedon Jun 13, 2017
Let's do it if there's a Java 9 build supporting that header available at the time of the release.
jodastephen commentedon Jun 20, 2017
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.
gunnarmorling commentedon Jun 20, 2017
Yes, not much risk to adding the header righ away, I guess.
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.mapstructpackage unless there's something wrong with their module path setup.gunnarmorling commentedon Jun 27, 2017
Java 9 b175 is out by now which supports the
Automatic-Module-Nameheader. We're already making use of it in Bean Validation and Hibernate Validator.mapstruct#1224 Adding Automatic-Module-Name headers to mapstruct, map…
agudian commentedon Jul 8, 2017
Gunnar fixed it, thanks! 👍