From 502100d73e2df46b644d9544429b46ae867a4f43 Mon Sep 17 00:00:00 2001 From: lucio Date: Tue, 12 Mar 2024 14:25:51 +0100 Subject: [PATCH] moved to jakarta --- .classpath | 8 +++++++- pom.xml | 14 +++++++------- .../java/org/gcube/smartgears/ContextListener.java | 8 ++++---- .../java/org/gcube/smartgears/ContextProvider.java | 2 +- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.classpath b/.classpath index d2a1cd5..55e6224 100644 --- a/.classpath +++ b/.classpath @@ -8,7 +8,6 @@ - @@ -19,9 +18,16 @@ + + + + + + + diff --git a/pom.xml b/pom.xml index 008295b..62851be 100644 --- a/pom.xml +++ b/pom.xml @@ -19,12 +19,14 @@ UTF-8 11 - 11 + 11 - scm:git:https://code-repo.d4science.org/gCubeSystem/common-smartgears-app - scm:git:https://code-repo.d4science.org/gCubeSystem/common-smartgears-app + + scm:git:https://code-repo.d4science.org/gCubeSystem/common-smartgears-app + + scm:git:https://code-repo.d4science.org/gCubeSystem/common-smartgears-app https://code-repo.d4science.org/gCubeSystem/common-smartgears-app @@ -43,10 +45,8 @@ - javax.servlet - javax.servlet-api - 3.0.1 - provided + jakarta.servlet + jakarta.servlet-api diff --git a/src/main/java/org/gcube/smartgears/ContextListener.java b/src/main/java/org/gcube/smartgears/ContextListener.java index ada0dad..1a0f65d 100644 --- a/src/main/java/org/gcube/smartgears/ContextListener.java +++ b/src/main/java/org/gcube/smartgears/ContextListener.java @@ -4,9 +4,9 @@ import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; +import jakarta.servlet.annotation.WebListener; import org.gcube.smartgears.annotations.ManagedBy; import org.gcube.smartgears.application.manager.AppManagerObserver; @@ -81,7 +81,7 @@ public class ContextListener implements ServletContextListener { context.events().subscribe(observer); } else { - log.info("no application managers faound for {}",context.name()); + log.info("no application managers found for {}",context.name()); } } diff --git a/src/main/java/org/gcube/smartgears/ContextProvider.java b/src/main/java/org/gcube/smartgears/ContextProvider.java index a893f5e..46f3598 100644 --- a/src/main/java/org/gcube/smartgears/ContextProvider.java +++ b/src/main/java/org/gcube/smartgears/ContextProvider.java @@ -1,6 +1,6 @@ package org.gcube.smartgears; -import javax.servlet.ServletContext; +import jakarta.servlet.ServletContext; import org.gcube.common.events.Hub; import org.gcube.smartgears.configuration.application.ApplicationConfiguration;