-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require Java 11, update to Groovy 3, JUnit 5, Gradle 7, etc (#527)
* Update required java version to 11, with ReleaseNotes updates * Update ElasticSearch to 7.10.2, the last Apache 2.0 licensed version; update build to add logs dir if missing, start process in background * Update MoquiStart and MClassLoader definePackage() methods to get the Java 11 getDefinedPackage() instead of deprecated getPackage() which was evidently changed because it takes too long to google 'javadoc ClassLoader' and scroll down * Updates related to an attempt to update Groovy to 3.0.8 with small code changes for type checking quirks and on the Groovy side seems to work fine, but this requires updating the Spock test framework and with the latest (2.0-groovy-3.0) getting errors about Invalid test class with No runnable methods * Update .travis.yml file to use openjdk11 * Update Jetty to 10.0.6, including spec updates to Servlet 4.0 and Websocket 1.1; update RestClient and WebUtilities for changes in Jetty HTTP Client; update MoquiStart for small changes in the Jetty Websocket classes * Java 11 (#518) * moving to gradle 7 * moving to JUnit 5 and testing Karate Framework -All test tasks now have "ignoreFailures = true" since some stock tests are failing already and blocking the custom tests of the user * Update gradle to 6.9.1 * Upgrade gradle to version 6.9.1 / Update addons * Update groovy in moqui-util * Update dependencies to latest * Update h2 dependency * Update dependencies and change from api to implementation * Update gradle to 7.4.1 / Upgrade to Groovy 3.0.10 * Update tests to junit 5 and groovy 3 * Change implementation to api Co-authored-by: Mohammad Al-Hajj <[email protected]> Co-authored-by: Mohammad Al-Hajj <[email protected]> * Remove execWarRuntime.extendsFrom api, causes huge number of unwanted duplicate jars in the war file * Go back to Groovy 3.0.9, there is some sort of bug in 3.0.10 that causes EntityDefinition.isViewEntity to flip from true to false after constructor, see comments in changes * In framework/build.gradle a few cleanups and changes to work with both Gradle 5 and Gradle 7, with TODO once we give up on Gradle 5 and require Gradle 7 for this; framework:test still not working, added TODO note that when useJUnitPlatform is commented then it runs the tests but they all fail because it doesn't wait for the framework to start * In framework/build.gradle more tasks.withType calls down by the others, these were at the top to easily comment/uncomment them over time, but for now are on all the time to help with updates * Spock tests in framework working, but not using MoquiSuite.groovy, need alternative now that Spock uses JUnit Platform with some JUnit4 backward compatibility but not complete, like not including the TestSuite approach to control run order and cleanup after a set of test classes; also use older startElasticSearch approach because of ProcessBuilder issues on some platforms * Update MoquiSuite.groovy to use JUnit Platform Suite and Jupiter annotations, add explicit include back to test task config in framework/build.gradle * Add ReleaseNotes about recent changes and JUnit update that will not be backward compatible, at least not for Test Suites * Disable lint warnings, most critical now resolved, will continue to use finalized to make sure things get cleaned up until completely removed, better to not have in there causing confusion vs real errors/etc for all except framework maintainers * Remove comment that no longer applies * Uncomment contents of GroovyShellEndpoint, change Groovysh import to new package in Groovy 3, add jline library explicitly which is required by groovy-groovysh but not in its dependencies * In build.gradle plusRuntimeWarTemp task (used by addRuntime) exclude librepo directory, add duplicatesStrategy needed in Gradle 7 if there are duplicates; thanks to Jens for bringing this up, for PR #526 which had a variation on this but was against the master branch Co-authored-by: Michael Jones <[email protected]> Co-authored-by: Mohammad Al-Hajj <[email protected]> Co-authored-by: Mohammad Al-Hajj <[email protected]>
- Loading branch information
1 parent
f43500c
commit cb2daac
Showing
35 changed files
with
421 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: groovy | ||
|
||
jdk: | ||
- openjdk8 | ||
- openjdk11 | ||
|
||
install: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Builds a minimal docker image with openjdk and moqui with various volumes for configuration and persisted data outside the container | ||
# NOTE: add components, build and if needed load data before building a docker image with this | ||
|
||
FROM openjdk:8-jdk | ||
FROM openjdk:11-jdk | ||
MAINTAINER Moqui Framework <[email protected]> | ||
|
||
WORKDIR /opt/moqui | ||
|
Oops, something went wrong.