diff --git a/benchmarking/java/com/google/j2cl/benchmarking/benchmarks.bzl b/benchmarking/java/com/google/j2cl/benchmarking/benchmarks.bzl index 7b1624fcc0..0ed153bf74 100644 --- a/benchmarking/java/com/google/j2cl/benchmarking/benchmarks.bzl +++ b/benchmarking/java/com/google/j2cl/benchmarking/benchmarks.bzl @@ -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, ) diff --git a/tools/java/com/google/j2cl/tools/gwtincompatible/BUILD b/tools/java/com/google/j2cl/tools/gwtincompatible/BUILD index a11fe6e136..b6481d2680 100644 --- a/tools/java/com/google/j2cl/tools/gwtincompatible/BUILD +++ b/tools/java/com/google/j2cl/tools/gwtincompatible/BUILD @@ -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"], ) @@ -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"], ) diff --git a/tools/java/com/google/j2cl/tools/rta/BUILD b/tools/java/com/google/j2cl/tools/rta/BUILD index 215882fee9..b78d9f83be 100644 --- a/tools/java/com/google/j2cl/tools/rta/BUILD +++ b/tools/java/com/google/j2cl/tools/rta/BUILD @@ -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"], ) diff --git a/transpiler/java/com/google/j2cl/transpiler/BUILD b/transpiler/java/com/google/j2cl/transpiler/BUILD index af41398415..e9c561f202 100644 --- a/transpiler/java/com/google/j2cl/transpiler/BUILD +++ b/transpiler/java/com/google/j2cl/transpiler/BUILD @@ -46,6 +46,7 @@ java_binary( "-XX:+TieredCompilation", ], main_class = "com.google.j2cl.transpiler.J2clCommandLineRunner", + use_launcher = False, runtime_deps = [":commandlinerunner_lib"], ) @@ -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"], ) @@ -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"], ) @@ -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"], )