Skip to content

Commit

Permalink
upgrade tomcat and servlet version
Browse files Browse the repository at this point in the history
  • Loading branch information
cproof committed Sep 15, 2023
1 parent 1621c03 commit f28695a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion RMBTControlServer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def generatedContextXmlFile = file("${buildDir}/context.xml")

dependencies {
providedCompile "org.apache.tomcat:tomcat-catalina:$catalinaVersion"
providedCompile "javax.servlet:javax.servlet-api:$servletVersion"
compileOnly group: 'jakarta.servlet', name: 'jakarta.servlet-api', version: "$servletVersion"
implementation('commons-io:commons-io:2.4',
"org.json:json:$jsonVersion",
"org.restlet.jse:org.restlet.ext.json:${restletVersion}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import java.util.concurrent.TimeUnit;

import javax.naming.NamingException;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;

import at.rtr.rmbt.db.DbConnection;
import at.rtr.rmbt.shared.GeoIPHelper;
Expand Down
1 change: 0 additions & 1 deletion RMBTMapServer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ subprojects{

dependencies {
providedCompile "org.apache.tomcat:tomcat-catalina:$catalinaVersion"
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: "$servletVersion"
implementation "org.json:json:$jsonVersion"
implementation "org.restlet.jse:org.restlet.ext.json:$restletVersion"
implementation "org.restlet.jee:org.restlet.ext.servlet:$restletVersion"
Expand Down
2 changes: 1 addition & 1 deletion RMBTSharedCode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.11'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.18'
implementation group: 'com.google.guava', name: 'guava', version: "$guavaVersion"
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: "$servletVersion"
compileOnly group: 'jakarta.servlet', name: 'jakarta.servlet-api', version: "$servletVersion"
implementation "org.json:json:$jsonVersion"
implementation group: 'com.google.code.gson', name: 'gson', version: "$gsonVersion"
implementation group: 'com.github.jknack', name: 'handlebars', version: '4.1.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*******************************************************************************/
package at.rtr.rmbt.shared.cache;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;

public class CacheContextListener implements ServletContextListener
{
Expand Down
2 changes: 1 addition & 1 deletion RMBTStatisticServer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def generatedContextXmlFile = file("${buildDir}/context.xml")

dependencies {
providedCompile "org.apache.tomcat:tomcat-catalina:$catalinaVersion"
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: "$servletVersion"
compileOnly group: 'jakarta.servlet', name: 'jakarta.servlet-api', version: "$servletVersion"
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation 'org.mockito:mockito-core:2.7.17'
implementation "org.restlet.jse:org.restlet:$restletVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;

import at.rtr.rmbt.shared.RevisionHelper;

Expand Down
4 changes: 2 additions & 2 deletions common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//
ext {
restletVersion = '2.4.3'
servletVersion = '3.1.0'
servletVersion = '5.0.0'
jacksonVersion = '2.14.2'
catalinaVersion = '7.0.109'
catalinaVersion = '10.1.13'
jsonVersion = '20220924'
javaMelodyVersion = '1.91.0'
dbUtilsVersion = '1.7'
Expand Down

0 comments on commit f28695a

Please sign in to comment.