Migration to JakartaEE 8 (#2777)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Jiayu Liu <Jimexist@users.noreply.github.com>
diff --git a/lib/java/gradle/environment.gradle b/lib/java/gradle/environment.gradle
index cb61c05..8c14a52 100644
--- a/lib/java/gradle/environment.gradle
+++ b/lib/java/gradle/environment.gradle
@@ -63,8 +63,8 @@
     implementation "org.slf4j:slf4j-api:${slf4jVersion}"
     implementation "org.apache.httpcomponents:httpclient:${httpclientVersion}"
     implementation "org.apache.httpcomponents:httpcore:${httpcoreVersion}"
-    implementation "javax.servlet:javax.servlet-api:${servletVersion}"
-    implementation "javax.annotation:javax.annotation-api:${javaxAnnotationVersion}"
+    implementation "jakarta.servlet:jakarta.servlet-api:${servletVersion}"
+    implementation "jakarta.annotation:jakarta.annotation-api:${javaxAnnotationVersion}"
     implementation "org.apache.commons:commons-lang3:${commonsLang3Version}"
 
     testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"