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
Move module-info.java to multi-release jar Java 9+ directory #172
I don't know a ton about this, but my impression is that it could affect the product -- but I'm fuzzy on the details, and we could do it in a patch release anytime.
One thing I've heard in the past is that some build tools blindly scan jars for .class files, and some such tools used to get confused by module-info.class, if only because it's necessarily built with -source 9 or higher. Putting module-info.class under META-INF (as this feature request proposes) typically keeps those tools from discovering it.
That said, I would hope that module-info-ignorant tools would be rare nowadays.
That said, I don't know if there are other reasons to move the module-info.class.
Activity
cpovirk commentedon Feb 10, 2021
A couple suggestions of this pattern:
cpovirk commentedon Mar 8, 2021
It's possible that this would eliminate the need for
modularity.mixedJavaRelease...jspecify/gradle/publish.gradle
Line 31 in 19961fa
...which nearly got me into trouble in
8135398, as noted in the description of 6fae6f0.kevinb9n commentedon Jan 27, 2022
Is this an issue purely of internal organization or does it affect the product?
cpovirk commentedon Jan 28, 2022
I don't know a ton about this, but my impression is that it could affect the product -- but I'm fuzzy on the details, and we could do it in a patch release anytime.
One thing I've heard in the past is that some build tools blindly scan jars for
.classfiles, and some such tools used to get confused bymodule-info.class, if only because it's necessarily built with-source 9or higher. Puttingmodule-info.classunderMETA-INF(as this feature request proposes) typically keeps those tools from discovering it.That said, I would hope that
module-info-ignorant tools would be rare nowadays.That said, I don't know if there are other reasons to move the
module-info.class.I'm highly comfortable calling this post-1.0.
mrjar: Set `@Target({..., MODULE})` in the root, and move `module-inf…
mrjar: Set `@Target({..., MODULE})` in the root, and move `module-inf…
mrjar: Set `@Target({..., MODULE})` in the root, and move `module-inf…