Skip to content

Commit 924ff45

Browse files
committed
Fix proptest warning suppression
1 parent f61500d commit 924ff45

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

build.sbt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,17 @@ lazy val proptest = (projectMatrix in file("proptest"))
271271
publish / skip := true,
272272
Test / fork := true,
273273
Test / baseDirectory := (LocalRootProject / baseDirectory).value,
274-
Test / javaOptions ++= Seq("-Xmx2G", "-XX:MetaspaceSize=256M")
274+
Test / javaOptions ++= Seq("-Xmx2G", "-XX:MetaspaceSize=256M"),
275+
scalacOptions ++= {
276+
CrossVersion.partialVersion(scalaVersion.value) match {
277+
case Some((2, _)) =>
278+
Seq(
279+
"-Wconf:msg=[Uu]nused&origin=scala[.]collection[.]compat._:s",
280+
"-Wconf:cat=deprecation&msg=.*[Jj]avaGenerateEqualsAndHash.*deprecated.*:s"
281+
)
282+
case _ => Seq.empty // Scala 2.12 or other (e.g. pre-2.13)
283+
}
284+
}
275285
)
276286

277287
lazy val lenses = (projectMatrix in file("lenses"))

0 commit comments

Comments
 (0)