Remove caveat for supressing 2.12.x warnings on lnd rpc (#3057)

This commit is contained in:
Chris Stewart 2021-05-10 12:05:44 -05:00 committed by GitHub
parent d223829a37
commit db486163f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,17 +12,7 @@ enablePlugins(AkkaGrpcPlugin)
// Disable deprecation warning otherwise protobuf deprecation warnings will cause errors // Disable deprecation warning otherwise protobuf deprecation warnings will cause errors
Compile / scalacOptions += { Compile / scalacOptions += {
//Added to supress all of the deprecation warnings inside of the "-Wconf:cat=deprecation:site=lnrpc\\..*:silent,cat=deprecation:site=signrpc\\..*:silent"
//generated scala code by the grpc plugin. Two packages have deprecations
//inside of them, 'signrpc' and 'lnrpc'
//see: https://www.scala-lang.org/2021/01/12/configuring-and-suppressing-warnings.html
if (scalaVersion.value.startsWith("2.13")) {
"-Wconf:cat=deprecation:site=lnrpc\\..*:silent,cat=deprecation:site=signrpc\\..*:silent"
} else {
//-Wconf doesn't work on Scala 2.12.x until we get 2.12.13
//which is currently blocked on a scoverage bug
""
}
} }
TaskKeys.downloadLnd := { TaskKeys.downloadLnd := {