Skip to content

Commit

Permalink
Set use_launcher = False to reduce unnecessary deps.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 733464370
  • Loading branch information
gkdn authored and copybara-github committed Mar 4, 2025
1 parent 2f62804 commit cc038b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def benchmark(name, deps = [], data = [], jvm_only = False, perfgate_test_tags =
name = "%s_local" % name,
testonly = 1,
main_class = "%s.%sLauncher" % (benchmark_java_package, name),
use_launcher = False,
runtime_deps = [":%s_lib" % name],
jvm_flags = JVM_FLAGS,
)
Expand Down
2 changes: 2 additions & 0 deletions tools/java/com/google/j2cl/tools/gwtincompatible/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ java_library(
java_binary(
name = "GwtIncompatibleStripper",
main_class = "com.google.j2cl.tools.gwtincompatible.GwtIncompatibleStripperCommandLineRunner",
use_launcher = False,
runtime_deps = [":gwtincompatible_lib"],
)

Expand All @@ -48,6 +49,7 @@ java_binary(
name = "GwtIncompatibleStripper_worker",
jvm_flags = JVM_FLAGS,
main_class = "com.google.j2cl.tools.gwtincompatible.BazelGwtIncompatibleStripper",
use_launcher = False,
visibility = ["//build_defs/internal_do_not_use:__pkg__"],
runtime_deps = [":gwtincompatible_worker_lib"],
)
1 change: 1 addition & 0 deletions tools/java/com/google/j2cl/tools/rta/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ java_binary(
name = "J2clRta_worker",
jvm_flags = JVM_FLAGS,
main_class = "com.google.j2cl.tools.rta.BazelJ2clRta",
use_launcher = False,
visibility = ["//build_defs/internal_do_not_use:__pkg__"],
runtime_deps = [":rta"],
)
Expand Down
4 changes: 4 additions & 0 deletions transpiler/java/com/google/j2cl/transpiler/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ java_binary(
"-XX:+TieredCompilation",
],
main_class = "com.google.j2cl.transpiler.J2clCommandLineRunner",
use_launcher = False,
runtime_deps = [":commandlinerunner_lib"],
)

Expand Down Expand Up @@ -106,6 +107,7 @@ java_binary(
name = "BazelJ2clBuilder",
jvm_flags = JVM_FLAGS,
main_class = "com.google.j2cl.transpiler.BazelJ2clBuilder",
use_launcher = False,
visibility = ["//build_defs/internal_do_not_use:__pkg__"],
runtime_deps = [":bazelbuilder_lib"],
)
Expand All @@ -114,6 +116,7 @@ java_binary(
name = "BazelJ2wasmExportGenerator",
jvm_flags = JVM_FLAGS,
main_class = "com.google.j2cl.transpiler.BazelJ2wasmExportsGenerator",
use_launcher = False,
visibility = ["//build_defs/internal_do_not_use:__pkg__"],
runtime_deps = [":bazelwasmexportgenerator_lib"],
)
Expand All @@ -122,6 +125,7 @@ java_binary(
name = "BazelJ2wasmBundler",
jvm_flags = JVM_FLAGS,
main_class = "com.google.j2cl.transpiler.BazelJ2wasmBundler",
use_launcher = False,
visibility = ["//build_defs/internal_do_not_use:__pkg__"],
runtime_deps = [":bazelj2wasmbundler_lib"],
)

0 comments on commit cc038b8

Please sign in to comment.