File tree 3 files changed +26
-1
lines changed
3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
common --java_language_version=17
2
2
common --java_runtime_version=17
3
+
4
+ # useful for CI:
5
+ # build --flaky_test_attempts=2
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel_rules_scala//scala:scala.bzl" , "setup_scala_toolchain" )
2
+
3
+ setup_scala_toolchain (
4
+ name = "custom_scala_toolchain" ,
5
+ scalacopts = [
6
+ "-Wunused" , # Warn if an a construct is unused.
7
+ "-Wdead-code" , # Warn when dead code is identified.
8
+ "-Xlint:inaccessible" , # Warn about inaccessible types in method signatures.
9
+ "-feature" ,
10
+ "-Ymacro-annotations" ,
11
+ "-Werror" ,
12
+ ],
13
+ strict_deps_mode = "error" ,
14
+ unused_dependency_checker_mode = "off" ,
15
+ )
Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ http_archive(
8
8
)
9
9
10
10
load ("@io_bazel_rules_scala//:scala_config.bzl" , "scala_config" )
11
+
11
12
scala_config (scala_version = "2.13.14" )
12
13
13
14
load ("@io_bazel_rules_scala//scala:scala.bzl" , "scala_repositories" )
15
+
14
16
scala_repositories (
15
17
overriden_artifacts = {
16
18
# Change both the artifact names and sha256s.
@@ -30,12 +32,17 @@ scala_repositories(
30
32
)
31
33
32
34
load ("@rules_proto//proto:repositories.bzl" , "rules_proto_dependencies" , "rules_proto_toolchains" )
35
+
33
36
rules_proto_dependencies ()
37
+
34
38
rules_proto_toolchains ()
35
39
36
40
load ("@io_bazel_rules_scala//scala:toolchains.bzl" , "scala_register_toolchains" )
37
- scala_register_toolchains ()
41
+
42
+ register_toolchains (":custom_scala_toolchain" )
38
43
39
44
load ("@io_bazel_rules_scala//testing:scalatest.bzl" , "scalatest_repositories" , "scalatest_toolchain" )
45
+
40
46
scalatest_repositories ()
47
+
41
48
scalatest_toolchain ()
You can’t perform that action at this time.
0 commit comments