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

Merged json-utils with jolt-core so there are no modularity issues #873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Verdoso
Copy link

@Verdoso Verdoso commented Oct 10, 2019

This is a PR to solve the issue of using Jolt with a version of Java > 9 with modularity.
As explained in #789 (Jolt and Java 9: split package) the fact that jolt generates two different jars that have classes in the same package and have to be used together is a problem when modularity rules are applied.
In any case, all the use cases I've seen of jolt do use both jar files... always. The alternative would be to move the classes in the json-utils package to a different package, but that would mean changing and recompiling the client code that uses jolt. As it is, one just needs to change the pom.xml to remove jolt-core and json-utils and replace them with jolt-core-all (changing the version).

Cheers!

The issue was having the same package defined in two different jars, as
that is disallowed in Java >=9
Instead of generating a jolt-core.jar artifact, jolt-core now generates
jolt-core-all.jar
Version has been changed to 0.2.0 to make the incompatibility explicit,
as jars have changed.
@Verdoso
Copy link
Author

Verdoso commented Oct 10, 2019

For some reason, Travis is configured to try to run with Java 8 but the Install JDK just has 9 to 14 versions available, so...

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

Successfully merging this pull request may close these issues.

1 participant