Bazel: Cover the ant tasks bundle and its tests

org.eclipse.jgit.ant and org.eclipse.jgit.ant.test were the last
Java-bearing bundles missing from the Bazel build; only what Gerrit
consumes had been wired up so far. Add build and test targets for
them and wire org.apache.ant 1.10.15 into the rules_jvm_external
dependencies.

The remaining Maven modules without a Bazel counterpart contain no
Java code and stay Maven-only by design: org.eclipse.jgit.packaging
(Tycho/p2 for the Eclipse release train), org.eclipse.jgit.coverage
(JaCoCo report aggregation) and org.eclipse.jgit.ee8 (sources are
generated by tools/jgit-ee8).

Change-Id: I8762f0cc18b19b3b41b1927a63ac7dfc43f29d3f
diff --git a/MODULE.bazel b/MODULE.bazel
index c873b13..46ce938 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -55,6 +55,7 @@
         "net.java.dev.jna:jna-platform:" + JNA_VERSION,
         "net.java.dev.jna:jna:" + JNA_VERSION,
         "net.sf.jopt-simple:jopt-simple:5.0.4",
+        "org.apache.ant:ant:1.10.15",
         "org.apache.commons:commons-compress:1.28.0",
         "org.apache.commons:commons-lang3:3.20.0",
         "org.apache.commons:commons-math3:3.6.1",
diff --git a/lib/BUILD b/lib/BUILD
index 3805910..3b7b692 100644
--- a/lib/BUILD
+++ b/lib/BUILD
@@ -1,6 +1,15 @@
 load("@rules_java//java:defs.bzl", "java_library")
 
 java_library(
+    name = "ant",
+    visibility = [
+        "//org.eclipse.jgit.ant:__pkg__",
+        "//org.eclipse.jgit.ant.test:__pkg__",
+    ],
+    exports = ["@external_deps//:org_apache_ant_ant"],
+)
+
+java_library(
     name = "args4j",
     visibility = [
         "//org.eclipse.jgit.pgm:__pkg__",
diff --git a/org.eclipse.jgit.ant.test/BUILD b/org.eclipse.jgit.ant.test/BUILD
new file mode 100644
index 0000000..edab025
--- /dev/null
+++ b/org.eclipse.jgit.ant.test/BUILD
@@ -0,0 +1,18 @@
+load(
+    "@com_googlesource_gerrit_bazlets//tools:junit.bzl",
+    "junit_tests",
+)
+
+junit_tests(
+    name = "ant",
+    srcs = glob(["src/**/*.java"]),
+    tags = ["ant"],
+    deps = [
+        "//lib:ant",
+        "//lib:junit",
+        "//lib:slf4j-simple",
+        "//org.eclipse.jgit.ant:jgit-ant",
+        "//org.eclipse.jgit:jgit",
+        "//org.eclipse.jgit.junit:junit",
+    ],
+)
diff --git a/org.eclipse.jgit.ant/BUILD b/org.eclipse.jgit.ant/BUILD
new file mode 100644
index 0000000..23de644
--- /dev/null
+++ b/org.eclipse.jgit.ant/BUILD
@@ -0,0 +1,15 @@
+load("@rules_java//java:defs.bzl", "java_library")
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "jgit-ant",
+    srcs = glob(["src/**/*.java"]),
+    resource_strip_prefix = "org.eclipse.jgit.ant/resources",
+    resources = glob(["resources/**"]),
+    deps = [
+        "//lib:ant",
+        # We want this dep to be a provided_dep
+        "//org.eclipse.jgit:jgit",
+    ],
+)