github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/toolchain/scala/BUILD.bazel (about) 1 load("@io_bazel_rules_scala//scala:scala_toolchain.bzl", "scala_toolchain") 2 3 toolchain( 4 name = "default_toolchain", 5 toolchain = "minimal_direct_source_deps", 6 toolchain_type = "@io_bazel_rules_scala//scala:toolchain_type", 7 visibility = ["//visibility:public"], 8 ) 9 10 scala_toolchain( 11 name = "minimal_direct_source_deps", 12 compiler_deps_mode = "error", 13 dependency_mode = "direct", 14 dependency_tracking_method = "ast-plus", 15 scalac_jvm_flags = [ 16 "-Djava.security.manager=allow", 17 ], 18 strict_deps_mode = "error", 19 unused_dependency_checker_mode = "error", 20 ) 21 22 # toolchain( 23 # name = "testing_toolchain", 24 # toolchain = ":testing_toolchain_with_junit_and_scalatest_impl", 25 # toolchain_type = "@io_bazel_rules_scala//testing/toolchain:testing_toolchain_type", 26 # visibility = ["//visibility:public"], 27 # ) 28 29 # scala_testing_toolchain( 30 # name = "testing_toolchain_with_junit_and_scalatest_impl", 31 # dep_providers = [ 32 # ":junit_classpath_provider", 33 # ":scalatest_classpath_provider", 34 # ], 35 # visibility = ["//visibility:public"], 36 # ) 37 38 # declare_deps_provider( 39 # name = "junit_classpath_provider", 40 # deps_id = "junit_classpath", 41 # visibility = ["//visibility:public"], 42 # deps = [ 43 # "@maven//:junit_junit", 44 # "@maven//:org_hamcrest_hamcrest", 45 # "@maven//:org_hamcrest_hamcrest_core", 46 # ], 47 # ) 48 49 # declare_deps_provider( 50 # name = "scalatest_classpath_provider", 51 # deps_id = "scalatest_classpath", 52 # visibility = ["//visibility:public"], 53 # deps = [ 54 # "@maven//:org_scalactic_scalactic_2_12", 55 # "@maven//:org_scalamock_scalamock_2_12", 56 # "@maven//:org_scalatest_scalatest_2_12", 57 # ], 58 # ) 59 60 # filegroup( 61 # name = "jacocorunner", 62 # srcs = ["@bazel_jacocorunner//:jar"], 63 # visibility = ["//visibility:public"], 64 # ) 65 66 # genrule( 67 # name = "jacocorunner_jar", 68 # srcs = [":jacocorunner"], 69 # outs = ["jacocorunner.jar"], 70 # cmd = "cp $< $@", 71 # ) 72 73 # # NOTE: this target is named in a patch file for io_bazel_rules_scala to 74 # # synchronize the version of the jacocorunner used by the scala instrumenter 75 # # (compile-time) and during the coverage tests (runtime). 76 # java_import( 77 # name = "global_jacocorunner", 78 # jars = [":jacocorunner.jar"], 79 # visibility = ["//visibility:public"], 80 # ) 81 82 # create_base_image_with_core_deps( 83 # arch_shortname = "arm64", 84 # base_image = "//bazel_tools:java_arm64", 85 # ) 86 87 # create_base_image_with_core_deps( 88 # arch_shortname = "amd64", 89 # base_image = "//bazel_tools:java", 90 # )