Skip to content

Commit

Permalink
Support different scalaopts per Scala version on test_reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaidas Pilkauskas committed Nov 6, 2020
1 parent bc9ed42 commit 77bdc13
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions scala/support/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("//scala:scala.bzl", "scala_library")
load("@io_bazel_rules_scala_config//:config.bzl", "SCALA_MAJOR_VERSION")

scala_library(
name = "test_reporter",
Expand All @@ -14,13 +15,28 @@ scala_library(
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
# TODO: commented out due to Scala 2.13 "-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
# TODO: commented out due to Scala 2.13 "-Xfuture",
# TODO: commented out due to Scala 2.13 "-Ywarn-unused-import",
# TODO: commented out due to Scala 2.13 "-Ypartial-unification",
"-Wunused:imports",
] if SCALA_MAJOR_VERSION == "2.13" else [
"-deprecation:true",
"-encoding",
"UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import",
"-Ypartial-unification",
],
visibility = ["//visibility:public"],
deps = [
Expand Down

0 comments on commit 77bdc13

Please sign in to comment.