Add -Xsource:3 to lnd-rpc (#5595)

* Add -Xsource:3 to lnd-rpc

* Upgrade pekko-grpc-sbt-plugin to 1.1.0-M1 to support -Xsource:3

* Remove -quickfix:any

* Upgrade other pekko deps to 1.1.0-M1 to fix ILlegalStateExceptions w/ dep clashes
This commit is contained in:
Chris Stewart 2024-07-16 08:08:43 -07:00 committed by GitHub
parent 559157e0c7
commit 4885bdb07d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -141,6 +141,7 @@ lazy val eclairRpc = project
lazy val lndRpc = project
.in(file("lnd-rpc"))
.settings(scalacOptions += "-Xsource:3")
.settings(CommonSettings.prodSettings: _*)
.dependsOn(asyncUtilsJVM, appCommons)

View file

@ -175,7 +175,7 @@ class LndRpcClient(val instance: LndInstance, binaryOpt: Option[File] = None)(
})
}
def thisUsesUnstableApi(): Unit = ()
override def thisUsesUnstableApi(): Unit = ()
}
// Configure the client

View file

@ -165,8 +165,7 @@ object CommonSettings {
"-Xlint:constant",
"-Xlint:nonlocal-return",
"-Xlint:implicit-not-found",
"-Xlint:serial",
"-quickfix:any"
"-Xlint:serial"
)
}

View file

@ -23,9 +23,9 @@ object Deps {
val spray = "1.3.6"
val zeromq = "0.5.4"
val scalapb = "0.11.17"
val akkav = "1.0.1"
val akkav = "1.1.0-M1"
val playv = "3.0.4" // https://github.com/playframework/play-json/releases
val akkaStreamv = "1.0.2"
val akkaStreamv = "1.1.0-M1"
val jUnixSocketV = "2.10.0"
val scodecV = "1.2.0"
val junitV = "0.13.3"

View file

@ -48,7 +48,7 @@ addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.3.4")
// gRPC
//https://pekko.apache.org/docs/pekko-grpc/current/server/walkthrough.html#setting-up
addSbtPlugin("org.apache.pekko" % "pekko-grpc-sbt-plugin" % "1.0.2")
addSbtPlugin("org.apache.pekko" % "pekko-grpc-sbt-plugin" % "1.1.0-M1")
// Scala.js
//https://www.scala-js.org/doc/project/