diff --git a/.travis.yml b/.travis.yml index fbd3c68..18e3771 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ os: linux language: java jdk: -- openjdk8 +- openjdk11 jobs: include: install: ./mvnw -q de.qaware.maven:go-offline-maven-plugin:resolve-dependencies -Prelease diff --git a/Dockerfile b/Dockerfile index 5d8a6b7..5954157 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM adoptopenjdk/openjdk8:jdk8u222-b10 +FROM adoptopenjdk/openjdk11:latest MAINTAINER Stian Conradsen "stian.conradsen@sparebank1.no" RUN mkdir -p /opt/troxy/bin \ diff --git a/README.md b/README.md index ff4b216..4c6c3b5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/SpareBank1/Troxy.svg?branch=master)](https://travis-ci.org/SpareBank1/Troxy) +[![Build Status](https://travis-ci.com/SpareBank1/Troxy.svg?branch=master)](https://travis-ci.com/SpareBank1/Troxy) [![Maven Central](https://img.shields.io/maven-central/v/no.sparebank1.troxy/troxy-server.svg)](https://search.maven.org/artifact/no.sparebank1.troxy/troxy-server) [![Docker Pulls](https://img.shields.io/docker/pulls/sparebank1/troxy)](https://hub.docker.com/r/sparebank1/troxy) # Troxy diff --git a/build.sh b/build.sh index c1fab2e..474f449 100755 --- a/build.sh +++ b/build.sh @@ -8,5 +8,5 @@ dockerBuild() { ./mvnw -B clean install -dockerBuild +#dockerBuild diff --git a/deploy.sh b/deploy.sh index f5b19ae..dea1c06 100755 --- a/deploy.sh +++ b/deploy.sh @@ -35,6 +35,6 @@ mvnDeploy() { mvnDeploy || die 'Maven deploy failure' -hasDockerCreds || die 'Missing docker credentials' -dockerLogin || die 'Docker login failure' -dockerPush || die 'Docker push failure' +#hasDockerCreds || die 'Missing docker credentials' +#dockerLogin || die 'Docker login failure' +#dockerPush || die 'Docker push failure' diff --git a/pom.xml b/pom.xml index 739db7e..2afaa98 100644 --- a/pom.xml +++ b/pom.xml @@ -64,14 +64,15 @@ UTF-8 - 1.8 + 17 - 2.27 - 9.4.35.v20201120 + 3.1.3 + 11.0.16 2.11.0 - 3.1.0 + 5.0.0 1.7.28 5.5.1 + 3.0.0 @@ -84,10 +85,15 @@ - javax.servlet - javax.servlet-api + jakarta.servlet + jakarta.servlet-api ${servlet.version} + + jakarta.xml.bind + jakarta.xml.bind-api + ${jakarta.xml.bind-api.version} + org.slf4j slf4j-api @@ -199,10 +205,10 @@ org.apache.maven.plugins maven-compiler-plugin - 3.7.0 + 3.8.1 - 1.8 - 1.8 + ${java.version} + ${java.version} ${project.build.sourceEncoding} diff --git a/troxy-core/pom.xml b/troxy-core/pom.xml index 639ce48..2a80758 100644 --- a/troxy-core/pom.xml +++ b/troxy-core/pom.xml @@ -12,8 +12,12 @@ - javax.servlet - javax.servlet-api + jakarta.servlet + jakarta.servlet-api + + + jakarta.xml.bind + jakarta.xml.bind-api org.slf4j diff --git a/troxy-core/src/main/java/no/sb1/troxy/http/common/Request.java b/troxy-core/src/main/java/no/sb1/troxy/http/common/Request.java index 8088fc0..8d7903c 100644 --- a/troxy-core/src/main/java/no/sb1/troxy/http/common/Request.java +++ b/troxy-core/src/main/java/no/sb1/troxy/http/common/Request.java @@ -7,8 +7,8 @@ import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.servlet.http.HttpServletRequest; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.xml.bind.annotation.XmlTransient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/troxy-core/src/main/java/no/sb1/troxy/http/common/Response.java b/troxy-core/src/main/java/no/sb1/troxy/http/common/Response.java index d7fffb8..5dae328 100644 --- a/troxy-core/src/main/java/no/sb1/troxy/http/common/Response.java +++ b/troxy-core/src/main/java/no/sb1/troxy/http/common/Response.java @@ -6,7 +6,7 @@ import java.net.HttpURLConnection; import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.annotation.XmlTransient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/troxy-core/src/main/java/no/sb1/troxy/record/v2/Recording.java b/troxy-core/src/main/java/no/sb1/troxy/record/v2/Recording.java index d7424f2..0b22209 100644 --- a/troxy-core/src/main/java/no/sb1/troxy/record/v2/Recording.java +++ b/troxy-core/src/main/java/no/sb1/troxy/record/v2/Recording.java @@ -9,7 +9,7 @@ import java.util.Map; import java.util.Random; import java.util.concurrent.atomic.AtomicInteger; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.annotation.XmlTransient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/troxy-core/src/main/java/no/sb1/troxy/record/v3/Recording.java b/troxy-core/src/main/java/no/sb1/troxy/record/v3/Recording.java index e553eb6..8356535 100644 --- a/troxy-core/src/main/java/no/sb1/troxy/record/v3/Recording.java +++ b/troxy-core/src/main/java/no/sb1/troxy/record/v3/Recording.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.annotation.XmlTransient; /** * This is a container class for a recording. diff --git a/troxy-core/src/main/java/no/sb1/troxy/util/RequestInterceptor.java b/troxy-core/src/main/java/no/sb1/troxy/util/RequestInterceptor.java index 594ecf9..a42d51c 100644 --- a/troxy-core/src/main/java/no/sb1/troxy/util/RequestInterceptor.java +++ b/troxy-core/src/main/java/no/sb1/troxy/util/RequestInterceptor.java @@ -4,9 +4,9 @@ import java.util.Date; import java.util.HashMap; import java.util.Map; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.handler.AbstractHandler; diff --git a/troxy-core/src/main/java/no/sb1/troxy/util/SimulatorHandler.java b/troxy-core/src/main/java/no/sb1/troxy/util/SimulatorHandler.java index d84cc10..2f45044 100644 --- a/troxy-core/src/main/java/no/sb1/troxy/util/SimulatorHandler.java +++ b/troxy-core/src/main/java/no/sb1/troxy/util/SimulatorHandler.java @@ -16,9 +16,9 @@ import org.slf4j.LoggerFactory; import javax.net.ssl.*; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import java.io.FileInputStream; import java.io.IOException; import java.net.*; diff --git a/troxy-server/src/main/java/no/sb1/troxy/rest/ApiHandler.java b/troxy-server/src/main/java/no/sb1/troxy/rest/ApiHandler.java index 363cb87..2d9b264 100644 --- a/troxy-server/src/main/java/no/sb1/troxy/rest/ApiHandler.java +++ b/troxy-server/src/main/java/no/sb1/troxy/rest/ApiHandler.java @@ -11,11 +11,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import java.io.*; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets;