samples: upgrade servlet API dependency to work with modern servlet containers

This commit is contained in:
Alexey Andreev 2023-01-26 17:11:44 +01:00
parent fcbcc30b21
commit 630fae3093
2 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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 {