Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic-Module-Name missing from sub-module manifests #2920

Closed
cowwoc opened this issue Aug 22, 2017 · 3 comments
Closed

Automatic-Module-Name missing from sub-module manifests #2920

cowwoc opened this issue Aug 22, 2017 · 3 comments
Assignees
Milestone

Comments

@cowwoc
Copy link

cowwoc commented Aug 22, 2017

Version 23 was supposed to add Automatic-Module-Name to the manifest file but it only did so for guava-parent: https://github.com/google/guava/blob/v23.0/pom.xml#L119

Please add Automatic-Module-Name for all sub-modules otherwise JDK9 clients will end up with the wrong module name.

@jodastephen
Copy link
Contributor

I just hit this too. The Automatic-Module-Name needs to go in the main Guava jar file, not the parent (or any other jar files (eg. not in guava-testlib or guava-tests).

@zyxist
Copy link

zyxist commented Sep 3, 2017

I think this should be fixed and released ASAP as 23.1 for example, given the fact that there is less than 20 days to JDK9 General Availability.

@ronshapiro ronshapiro self-assigned this Sep 13, 2017
@orionll
Copy link

orionll commented Sep 28, 2017

Any progress on this issue? 23.1 was released today, but I do not see Automatic-Module-Name in the manifest.

@cpovirk cpovirk closed this as completed in f2be0be Oct 9, 2017
@cpovirk cpovirk added this to the NEXT milestone Oct 9, 2017
@cgdecker cgdecker modified the milestones: NEXT, 23.2 Oct 11, 2017
cpovirk added a commit to google/auto that referenced this issue Oct 4, 2019
This makes it practical to use from code that uses modules.

Compare to Guava:
https://github.com/google/guava/blob/5496c37d4d904869297c2ced1f0d20e6f1507eaa/guava/pom.xml#L60
google/guava#2920

RELNOTES=AutoService: Set an Automatic-Module-Name.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=272882826
cpovirk added a commit to google/auto that referenced this issue Oct 4, 2019
This makes it practical to use from code that uses modules.

Compare to Guava:
https://github.com/google/guava/blob/5496c37d4d904869297c2ced1f0d20e6f1507eaa/guava/pom.xml#L60
google/guava#2920

RELNOTES=AutoService: Set an Automatic-Module-Name.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=272882826
cpovirk added a commit to google/error-prone that referenced this issue Oct 4, 2019
This makes it practical to use from code that uses modules.

Compare to Guava:
https://github.com/google/guava/blob/5496c37d4d904869297c2ced1f0d20e6f1507eaa/guava/pom.xml#L60
google/guava#2920

This is a step toward #1116 (though it doesn't address most artifacts, including javac).

Modules users may still see problems because com.google.errorprone.annotations is split between error_prone_annotations and error_prone_type_annotations. I wonder if the best solution to that is going to be to merge the two into error_prone_annotations, turning error_prone_type_annotations into an empty "forwarding" artifact. That would require compiling some files for Java 7 and some for Java 8, but that's doable (if a little clumsy). It might cause problems from some tool somewhere, though. Given that error_prone_type_annotations isn't nearly as commonly used, maybe you can wait it out until it's time to drop Java 7 support?

In any case, I don't think this CL makes things any worse.

RELNOTES=Set Automatic-Module-Name for annotations package.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=272890641
cpovirk added a commit to google/error-prone that referenced this issue Oct 4, 2019
This makes it practical to use from code that uses modules.

Compare to Guava:
https://github.com/google/guava/blob/5496c37d4d904869297c2ced1f0d20e6f1507eaa/guava/pom.xml#L60
google/guava#2920

This is a step toward #1116 (though it doesn't address most artifacts, including javac).

Modules users may still see problems because com.google.errorprone.annotations is split between error_prone_annotations and error_prone_type_annotations. I wonder if the best solution to that is going to be to merge the two into error_prone_annotations, turning error_prone_type_annotations into an empty "forwarding" artifact. That would require compiling some files for Java 7 and some for Java 8, but that's doable (if a little clumsy). It might cause problems from some tool somewhere, though. Given that error_prone_type_annotations isn't nearly as commonly used, maybe you can wait it out until it's time to drop Java 7 support?

In any case, I don't think this CL makes things any worse.

RELNOTES=Set Automatic-Module-Name for annotations package.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=272890641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants