Skip to content

module-info.java 2.11.0 gives error on requires com.google.gson; #2721

Answered by Marcono1234
AixNPanes asked this question in Q&A
Discussion options

You must be logged in to vote

Note that gson 20.10.1 has a module-info.class in the root directory of the jar. In gson 20.11.1 it has been moved to META-INF/versions/9

Gson 2.10.1 had the module-info.class under META-INF/versions/9 as well.

We had a report about a similar issue before: #2679
As mentioned there maybe the Gson JAR changed in some way when we updated Maven plugins or made the build reproducible, however the JAR should still be valid. It seems this might be an issue with Eclipse (see eclipse-jdt/eclipse.jdt.core#2495) since as you mention this only affects Eclipse but does not occur when running Maven from the command line.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Marcono1234

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by Marcono1234
Comment options

You must be logged in to vote
1 reply
@Marcono1234
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants