diff --git a/samples/hello/build.gradle.kts b/samples/hello/build.gradle.kts index 8ce00b1fc..76f184aa5 100644 --- a/samples/hello/build.gradle.kts +++ b/samples/hello/build.gradle.kts @@ -22,7 +22,7 @@ plugins { dependencies { teavm(teavm.libs.jsoApis) - compileOnly("javax.servlet:javax.servlet-api:3.0.1") + compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0") } teavm.js { diff --git a/samples/hello/src/main/java/org/teavm/samples/hello/Server.java b/samples/hello/src/main/java/org/teavm/samples/hello/Server.java index b9f556546..8f72a7a07 100644 --- a/samples/hello/src/main/java/org/teavm/samples/hello/Server.java +++ b/samples/hello/src/main/java/org/teavm/samples/hello/Server.java @@ -15,11 +15,11 @@ */ package org.teavm.samples.hello; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import java.io.IOException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; @WebServlet("/hello") public class Server extends HttpServlet {