diff --git a/.travis.yml b/.travis.yml index b0a37f2e50..4563bb7b9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ jdk: - openjdk11 - openjdk12 - openjdk13 + - openjdk14 before_script: - echo $JAVA_OPTS - export JAVA_OPTS=-Xmx1G diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index f3d88b1c2f..62d4c05355 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a2bf1313b8..622ab64a3c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 2fe81a7d95..fbd7c51583 100755 --- a/gradlew +++ b/gradlew @@ -82,6 +82,7 @@ esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then @@ -129,6 +130,7 @@ fi if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath diff --git a/gradlew.bat b/gradlew.bat index 9109989e3c..a9f778a7a9 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -84,6 +84,7 @@ set CMD_LINE_ARGS=%* set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% diff --git a/libraries.gradle b/libraries.gradle index cd4aa1839b..048d05ebb5 100644 --- a/libraries.gradle +++ b/libraries.gradle @@ -12,7 +12,8 @@ ext { jsonSchemaVersion = '2.2.11' guavaVersion = '28.1-jre' jacksonVersion = '2.10.0' - groovyVersion = '2.5.8' + groovyVersion = '3.0.4' + jlineVersion = '2.14.6' restAssuredVersion = '2.9.0' vaadinVersion = '8.10.0' nettyVersion = '4.1.42.Final' @@ -102,6 +103,9 @@ ext { groovysh: "org.codehaus.groovy:groovy-groovysh:${groovyVersion}", groovySql: "org.codehaus.groovy:groovy-sql:${groovyVersion}", + // Jline + jline: "jline:jline:${jlineVersion}", + // Jackson jacksonDatabind: "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}", @@ -110,7 +114,7 @@ ext { nettyCodecHttp: "io.netty:netty-codec-http:${nettyVersion}", // RestAssured - restAssured: "io.rest-assured:rest-assured:4.1.1", + restAssured: "io.rest-assured:rest-assured:4.3.0", jsonSchemaValidator: "com.github.java-json-tools:json-schema-validator:${jsonSchemaVersion}", guava: "com.google.guava:guava:${guavaVersion}", diff --git a/modules/binlog/src/test/java/org/jpos/binlog/BinLogTest.java b/modules/binlog/src/test/java/org/jpos/binlog/BinLogTest.java index 5f811f6fe2..c00d669694 100644 --- a/modules/binlog/src/test/java/org/jpos/binlog/BinLogTest.java +++ b/modules/binlog/src/test/java/org/jpos/binlog/BinLogTest.java @@ -100,7 +100,7 @@ public void run() { @AfterAll public static void cleanup() throws IOException { - if (Files.list(dir) != null) { + if (Files.isDirectory(dir)) { for (Path f : Files.newDirectoryStream(dir)) { if (f.toString().endsWith(".dat")) { System.out.println ("Deleting " + f.toString()); @@ -109,6 +109,6 @@ public static void cleanup() throws IOException { } } System.out.println ("Deleting " + dir); - Files.delete(dir); + Files.deleteIfExists(dir); } } diff --git a/modules/groovy/build.gradle b/modules/groovy/build.gradle index ddd582ee84..8a60ff9c34 100644 --- a/modules/groovy/build.gradle +++ b/modules/groovy/build.gradle @@ -4,6 +4,7 @@ dependencies { api libraries.jpos api libraries.groovy api libraries.groovysh + implementation libraries.jline api group: 'org.fusesource.jansi', name: 'jansi', version: '1.11' api libraries.groovySql