This package contains the Bazel-only bridge for source consumers that still run on EE8 and javax.servlet while JGit master uses jakarta.servlet.
JGit hosts this bridge because Gerrit is a known downstream that consumes JGit from source through a git submodule and still runs Jetty 12 EE8. Keeping the bridge in JGit lets Gerrit track JGit master and avoids maintaining a long-lived servlet-4 branch just for Gerrit. That branch was never a stable JGit release line, so it is not a sustainable way for Gerrit to receive JGit maintenance updates.
The bridge intentionally keeps the original JGit package names. It rewrites only servlet API references from jakarta.servlet to javax.servlet, then compiles generated jars from the rewritten source jars.
Generated targets:
//org.eclipse.jgit.http.server.ee8:jgit-servlet-ee8//org.eclipse.jgit.lfs.server.ee8:jgit-lfs-server-ee8Do not put one of these generated jars and its canonical Jakarta counterpart on the same classpath. They contain the same JGit classes.
This is intentionally limited to Bazel source consumers. It does not add Maven, Tycho, p2, or Maven Central publication machinery. Those should be added only if a non-Bazel consumer needs published EE8 artifacts.
Run:
bazelisk test //tools/jgit-ee8:generated_srcs_test
The test checks:
javax.servlet, not jakarta.servlet.ee8 packageNext steps:
srcs filegroups aligned with each servlet-facing java_library so new Java sources are transformed automatically.