Skip to content

Commit

Permalink
More samples need to switch to jakarta (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
elefeint committed May 11, 2022
1 parent 1cf9329 commit 7c6e5fe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ configurations {
}

dependencies {
providedCompile 'javax.servlet:servlet-api:2.5'
moreLibs 'javax.annotation:javax.annotation-api:1.2' // random extra JAR
providedCompile 'jakarta.servlet:jakarta.servlet-api:5.0.0'
moreLibs 'jakarta.annotation:jakarta.annotation-api:2.1.0' // random extra JAR
}

war {
Expand All @@ -27,7 +27,7 @@ war {
}

jib {
from.image = 'tomcat:8.5-jre8-alpine'
from.image = 'tomcat:10-jre8-temurin'
to {
image = System.getProperty("_TARGET_IMAGE")
credHelper = 'gcr'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ configurations {
}

dependencies {
providedCompile 'javax.servlet:servlet-api:2.5'
moreLibs 'javax.annotation:javax.annotation-api:1.2' // random extra JAR
providedCompile 'jakarta.servlet:jakarta.servlet-api:5.0.0'
moreLibs 'jakarta.annotation:jakarta.annotation-api:2.1.0' // random extra JAR
}

war {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

package example;

import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HelloWorld extends HttpServlet {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ repositories {
mavenCentral()
}

configurations {
moreLibs
}

dependencies {
compileOnly 'javax.servlet:servlet-api:2.5'
implementation 'javax.annotation:javax.annotation-api:1.2'
providedCompile 'jakarta.servlet:jakarta.servlet-api:5.0.0'
moreLibs 'jakarta.annotation:jakarta.annotation-api:2.1.0' // random extra JAR
}

jib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

package example;

import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HelloWorld extends HttpServlet {

Expand Down

0 comments on commit 7c6e5fe

Please sign in to comment.