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..4c5803d13c 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.4-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 b36a017694..26b17005c7 100644 --- a/libraries.gradle +++ b/libraries.gradle @@ -1,37 +1,38 @@ ext { jposVersion = '2.1.4-SNAPSHOT' - slf4jVersion = '1.7.28' + slf4jVersion = '1.7.30' logbackVersion = '1.2.3' - hibernateVersion = '5.4.6.Final' + hibernateVersion = '5.4.15.Final' geronimoVersion = '1.1.1' - jettyVersion = '9.4.20.v20190813' + jettyVersion = '9.4.28.v20200408' servletApiVersion = '4.0.1' websocketApiVersion = '1.1' - jgroupsVersion = '4.1.5.Final' + jgroupsVersion = '4.2.3.Final' jaxrsVersion = '2.0.1' - jsonSchemaVersion = '2.2.11' - guavaVersion = '28.1-jre' - jacksonVersion = '2.10.0' - groovyVersion = '2.5.8' + jsonSchemaVersion = '2.2.13' + guavaVersion = '29.0-jre' + jacksonVersion = '2.11.0' + groovyVersion = '3.0.3' + jlineVersion = '2.14.6' restAssuredVersion = '2.9.0' vaadinVersion = '8.10.0' - nettyVersion = '4.1.42.Final' + nettyVersion = '4.1.49.Final' httpAsyncClientVersion = '4.1.4' - mysqlJDBCVersion = '8.0.17' - c3p0Version = '0.9.5.4' - postgresJDBCVersion = '42.2.11' - flywaydbVersion = '6.0.4' - liquibaseVersion = '3.8.0' + mysqlJDBCVersion = '8.0.20' + c3p0Version = '0.9.5.5' + postgresJDBCVersion = '42.2.12' + flywaydbVersion = '6.4.1' + liquibaseVersion = '3.8.9' libraries = [ //jUnit (Tests) - junit: 'org.junit.jupiter:junit-jupiter:5.5.2', + junit: 'org.junit.jupiter:junit-jupiter:5.6.2', //jPOS jpos: "org.jpos:jpos:${jposVersion}", //Apache Commons - commons_lang: 'org.apache.commons:commons-lang3:3.9', + commons_lang: 'org.apache.commons:commons-lang3:3.10', commons_logging: 'commons-logging:commons-logging:1.2', //SLF4J and logback Stuff @@ -43,7 +44,7 @@ ext { logback: "ch.qos.logback:logback-classic:${logbackVersion}", //JODA-Time - joda_time: 'joda-time:joda-time:2.10.4', + joda_time: 'joda-time:joda-time:2.10.6', //Hibernate hibernate_core: "org.hibernate:hibernate-core:${hibernateVersion}", @@ -57,16 +58,19 @@ ext { jdbcH2: 'com.h2database:h2:1.4.199', jdbcMysql: "mysql:mysql-connector-java:${mysqlJDBCVersion}", jdbcPostgresql: "org.postgresql:postgresql:${postgresJDBCVersion}", - jdbcMssql: 'com.microsoft.sqlserver:mssql-jdbc:7.4.1.jre8', + jdbcMssql: 'com.microsoft.sqlserver:mssql-jdbc:8.2.2.jre8', //Freemarker - freemarker: 'org.freemarker:freemarker:[2.3.29,2.4)', + freemarker: 'org.freemarker:freemarker:2.3.30', //Mail javax_mail: 'javax.mail:javax.mail-api:1.6.2', + //Jakarta Activation + jakarta_activation: 'jakarta.activation:jakarta.activation-api:1.2.2', + //SSHD - sshd: 'org.apache.sshd:sshd-core:2.3.0', + sshd: 'org.apache.sshd:sshd-core:2.4.0', //Servlet API servlet_api: "javax.servlet:javax.servlet-api:${servletApiVersion}", @@ -102,6 +106,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 +117,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/groovy/build.gradle b/modules/groovy/build.gradle index ddd582ee84..ea9649a507 100644 --- a/modules/groovy/build.gradle +++ b/modules/groovy/build.gradle @@ -4,7 +4,8 @@ dependencies { api libraries.jpos api libraries.groovy api libraries.groovysh - api group: 'org.fusesource.jansi', name: 'jansi', version: '1.11' + implementation libraries.jline + api group: 'org.fusesource.jansi', name: 'jansi', version: '1.18' api libraries.groovySql } diff --git a/modules/groovy/src/main/java/org/jpos/q2/cli/GROOVY.java b/modules/groovy/src/main/java/org/jpos/q2/cli/GROOVY.java index a42f147f37..142ed98999 100644 --- a/modules/groovy/src/main/java/org/jpos/q2/cli/GROOVY.java +++ b/modules/groovy/src/main/java/org/jpos/q2/cli/GROOVY.java @@ -20,7 +20,7 @@ import groovy.lang.Binding; -import org.codehaus.groovy.tools.shell.Groovysh; +import org.apache.groovy.groovysh.Groovysh; import org.codehaus.groovy.tools.shell.IO; import org.jline.terminal.Attributes; import org.jline.terminal.Terminal; diff --git a/modules/qrest/build.gradle b/modules/qrest/build.gradle index 8a6a6106f1..3857792870 100644 --- a/modules/qrest/build.gradle +++ b/modules/qrest/build.gradle @@ -6,6 +6,7 @@ dependencies { api libraries.nettyHandler api libraries.nettyCodecHttp api libraries.freemarker + implementation libraries.jakarta_activation api jsonSchemaValidatorLibs testImplementation libraries.junit testImplementation libraries.restAssured