This effort has been discussed and underway for quite some time, and a candidate for updates required is finally ready in the java11
branch in the moqui-framework, moqui-runtime, example, mantle-usl, HiveMind, and PopCommerce components.
The main changes to be aware of, because they are not backward compatible, are the updates to require Java 11 (Java 8 no longer supported!) and to use Spock 2.1 with JUnit Platform (part of JUnit v5) which has some backward compatibility, but not with test suites so those will break unless updated. This is the reason for the java11 branch in the example, mantle-usl, HiveMind, and PopCommerce components that don’t otherwise need it.
For an example of the changes needed to build.gradle files and TestSuite classes to support JUnit Platform (v5), the mantle-usl component java11 branch may be helpful:
https://github.com/moqui/mantle-usl/compare/java11
Also included in this branch are updates to use Jetty 10 (which requires Java 11), Groovy 3, and support for Gradle 6+ (issues with Gradle 6 and 7 are resolved so they can now be used). These won’t impact most people as much, the changes for them are generally backward compatible.
The main reasons for this message are a warning about these changes coming up, and also a request for testing and validation with custom extensions and modifications that various are using. If these changes break anything that we can do something about then better to do so before these java11
branches are merged.
To try these branches in a local setup just do a pull all, then checkout the java11 branch in all. There are gradle tasks to make this easier:
$ gradle gitPullAll
$ gradle gitCheckoutAll -Pbranch=java11
Once this is done you should be able to run all tests (or however you test Moqui + your changes and extensions to it). If you run into issues, please use this topic to discuss them.
Unless there are issues that come up that delay this, I’d like to merge these in the next week or two.