Migrate deprecated JavaInfo API usages

This is a purely mechanical change that replaces:

* transitive_runtime_deps with transitive_runtime_jars

The old and new field is simply alias, and there is no change in
semantics. This change will allow dropping the deprecated field from
JavaInfo, reducing bazel memory consumption. The field was marked
deprecated in Nov 2021, so can be safely dropped.

This change is needed to bump Bazel version to new release 7.0.

Change-Id: If22d6e870bcb22d3377dc10b223b8e8635db6834
diff --git a/tools/pkg_war.bzl b/tools/pkg_war.bzl
index 2952a03..eb6c843 100644
--- a/tools/pkg_war.bzl
+++ b/tools/pkg_war.bzl
@@ -57,7 +57,7 @@
     transitive_libs = []
     for l in ctx.attr.libs:
         if JavaInfo in l:
-            transitive_libs.append(l[JavaInfo].transitive_runtime_deps)
+            transitive_libs.append(l[JavaInfo].transitive_runtime_jars)
         elif hasattr(l, "files"):
             transitive_libs.append(l.files)
 
@@ -75,7 +75,7 @@
     if ctx.attr.context:
         for jar in ctx.attr.context:
             if JavaInfo in jar:
-                transitive_context_libs.append(jar[JavaInfo].transitive_runtime_deps)
+                transitive_context_libs.append(jar[JavaInfo].transitive_runtime_jars)
             elif hasattr(jar, "files"):
                 transitive_context_libs.append(jar.files)
     transitive_context_deps = depset(transitive = transitive_context_libs)