aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2024-12-19 15:14:54 -0800
committerIvan Frade <ifrade@google.com>2024-12-19 15:14:54 -0800
commit31db36bbea6d081c8714a4c7ed3f5d81112ae8b8 (patch)
tree6045f1f100078b863103a9bb456ad39a2b628f9e
parenta783bb76caa148577d2f5ce11ef037a547d51c34 (diff)
downloadjgit-31db36bbea6d081c8714a4c7ed3f5d81112ae8b8.tar.gz
jgit-31db36bbea6d081c8714a4c7ed3f5d81112ae8b8.zip
http.server/BUILD: expose servlet resources as target
JGit has moved to jakarta servlet-api, but gerrit is still in the javax version. This is blocking gerrit to update their jgit code. Gerrit can workaround this rebuilding the jar of jgit-servlet but it is complicated to pass-through the resources. Expose the resources of the servlet as a target, to help gerrit build a javax version of the jgit-servlet. Change-Id: Ifd794e4222ad442f4a538a4d38caa73d58be0f6d
-rw-r--r--org.eclipse.jgit.http.server/BUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/BUILD b/org.eclipse.jgit.http.server/BUILD
index f8aa44db94..a0dae488b8 100644
--- a/org.eclipse.jgit.http.server/BUILD
+++ b/org.eclipse.jgit.http.server/BUILD
@@ -2,11 +2,16 @@ load("@rules_java//java:defs.bzl", "java_library")
package(default_visibility = ["//visibility:public"])
+filegroup(
+ name = "jgit-servlet-resources",
+ srcs = glob(["resources/**"]),
+)
+
java_library(
name = "jgit-servlet",
srcs = glob(["src/**/*.java"]),
resource_strip_prefix = "org.eclipse.jgit.http.server/resources",
- resources = glob(["resources/**"]),
+ resources = [":jgit-servlet-resources"],
deps = [
"//lib:servlet-api",
# We want these deps to be provided_deps