Add deploy_mainfest_lines to java_single_jar

PiperOrigin-RevId: 571961883
Change-Id: Iaffb68e0cfe747a5f7f1c37b8b74dc5194eeca00
diff --git a/java/java_single_jar.bzl b/java/java_single_jar.bzl
index 6632c62..b283a35 100644
--- a/java/java_single_jar.bzl
+++ b/java/java_single_jar.bzl
@@ -23,6 +23,7 @@
     args.add_all("--sources", inputs)
     args.use_param_file("@%s")
     args.set_param_file_format("multiline")
+    args.add_all("--deploy_manifest_lines", ctx.attr.deploy_manifest_lines)
     args.add("--output", ctx.outputs.jar)
     args.add("--normalize")
 
@@ -71,6 +72,8 @@
                 deps, exports, and runtime_deps. Resources are also collected.
                 Native cc_library or java_wrap_cc dependencies are not.""",
         ),
+        "deploy_manifest_lines": attr.string_list(doc = """
+          A list of lines to add to the <code>META-INF/manifest.mf</code> file."""),
         "compress": attr.string(default = "preserve", doc = """
             Whether to always deflate ("yes"), always store ("no"), or pass
             through unmodified ("preserve"). The default is "preserve", and is the