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

The library's jar has a misleading module-info.class file. #304

Closed
DynamicField opened this issue Jan 19, 2020 · 1 comment
Closed

The library's jar has a misleading module-info.class file. #304

DynamicField opened this issue Jan 19, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@DynamicField
Copy link

It is currently impossible to use LITIEngine with Java 13, using the modular system, as the jar file contains a misleading module-info in it, describing the java.xml.bind module:

java.xml.bind jar:file:///D:/WhereverMyJarIs/litiengine-0.4.18.jar/!module-info.class
exports javax.xml.bind
exports javax.xml.bind.annotation
exports javax.xml.bind.annotation.adapters
exports javax.xml.bind.attachment
exports javax.xml.bind.helpers
exports javax.xml.bind.util
requires java.activation transitive
requires java.base mandated
requires java.desktop
requires java.logging
requires java.xml transitive
uses javax.xml.bind.JAXBContextFactory

Unfortunately this makes the module system threat the litiengine.jar file as the java.xml.bind module.

A solution would be to remove the module-info.class file from the jar artifact, to be able to use it as an automatic module, so it can be used like that:

module com.myproject {
    require litiengine; // It currently throws 
}

(See StackOverflow post)

@steffen-wilke steffen-wilke added this to the v0.4.19-alpha milestone Jan 19, 2020
@namannigam-zz
Copy link

namannigam-zz commented Jan 19, 2020

To add to it, this seems to have been introduced with some packaging library/plugin (hint: look into the build.gradle definition) since the module-info.class is a replica of the java.xml.bind modules' descriptor class file copied onto the path of this artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants