Skip to content

Make use of module-info.java #513

@renatoathaydes

Description

@renatoathaydes

In order for this library to be usable in a modular Java application that is distributed with a jlink image, it needs to be made modular.

It is possible to do that and still keep compatibility with Java 8 and earlier versions, if that's something that may be keeping you from modularizing this library, by using a multi-version jar.

When I try to use the latest version of this library on my modular Java app, I get this error from jlink:

Error: automatic module cannot be used with jlink: org.json from file:///.../libs/json-20190722.jar

As this library does not seem to have external dependencies, making it modular should be almost trivial. If you do not have time to do it, would you accept a pull request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions