Skip to content

Commit

Permalink
bump: scala-library 2.13.13 (was 2.13.12) (#1143)
Browse files Browse the repository at this point in the history
* Fix some new warnings and relax compiler about some other

---------

Co-authored-by: Johan Andrén <johan@markatta.com>
  • Loading branch information
scala-steward and johanandren authored Mar 21, 2024
1 parent 140ffce commit 2bff21b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ object EventProducerServiceSpec {

private def createEnvelope(pid: PersistenceId, seqNr: Long, evt: String, origin: String): EventEnvelope[String] =
createEnvelope(pid, seqNr, evt)
.withMetadata(ReplicatedEventMetadata(ReplicaId(origin), seqNr, VersionVector.empty, false))
.withMetadata(ReplicatedEventMetadata(ReplicaId(origin), seqNr, VersionVector.empty, concurrent = false))

private def createBacktrackingEnvelope(
pid: PersistenceId,
seqNr: Long,
evt: String,
origin: String): EventEnvelope[String] =
createEnvelope(pid, seqNr, evt, source = "BT")
.withMetadata(ReplicatedEventMetadata(ReplicaId(origin), seqNr, VersionVector.empty, false))
.withMetadata(ReplicatedEventMetadata(ReplicaId(origin), seqNr, VersionVector.empty, concurrent = false))

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ object ReplicationSettings {
parallelUpdates,
replicationProjectionProvider,
Optional.empty(),
false,
identity,
_ => true,
Collections.emptyList,
edgeReplication = false,
configureEntity = identity,
producerFilter = _ => true,
initialConsumerFilter = Collections.emptyList,
// no system config to get defaults from, repeating config file defaults
edgeReplicationDeliveryRetries = 3,
edgeReplicationDeliveryMinBackoff = 250.millis.asJava,
Expand Down Expand Up @@ -137,10 +137,10 @@ object ReplicationSettings {
parallelUpdates = config.getInt("parallel-updates"),
replicationProjectionProvider = replicationProjectionProvider,
Optional.empty(),
false,
identity,
_ => true,
Collections.emptyList,
edgeReplication = false,
configureEntity = identity,
producerFilter = _ => true,
initialConsumerFilter = Collections.emptyList,
edgeReplicationDeliveryRetries = replicationConfig.getInt("edge-replication-delivery-retries"),
edgeReplicationDeliveryMinBackoff = replicationConfig.getDuration("edge-replication-delivery-min-backoff"),
edgeReplicationDeliveryMaxBackoff = replicationConfig.getDuration("edge-replication-delivery-max-backoff"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ class SlickProjectionSpec
fail(s"Envelope has already been verified at least twice for offset $o")
case Some(state) if state.envReceived =>
acc + (o -> state.copy(verifyCount = state.verifyCount + 1))
case None => acc + (o -> VerifyState(1, false))
case None => acc + (o -> VerifyState(1, envReceived = false))
case _ => throw new IllegalStateException
}
case e: Envelope =>
Expand Down
4 changes: 3 additions & 1 deletion project/AkkaDisciplinePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object AkkaDisciplinePlugin extends AutoPlugin {
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ypartial-unification",
"-Yno-adapted-args")
"-Yno-adapted-args") + noWarnSettings
case _ =>
Nil
}).toSeq,
Expand All @@ -51,6 +51,8 @@ object AkkaDisciplinePlugin extends AutoPlugin {
Seq(Compile / scalacOptions += "-deprecation")
}

val noWarnSettings = "-Wconf:cat=lint-deprecation:s"

val testUndicipline = Seq("-Ywarn-dead-code" // '???' used in compile only specs
)
val testsExtraUndicipline = Seq("-Wconf:msg=missing interpolator:s")
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sbt._

object Dependencies {

val Scala213 = "2.13.12"
val Scala213 = "2.13.13"
val Scala3 = "3.3.3"

val Scala2Versions = Seq(Scala213)
Expand Down
2 changes: 1 addition & 1 deletion samples/grpc/iot-service-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

Compile / scalacOptions ++= Seq(
"-release:11",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

enablePlugins(GatlingPlugin)

libraryDependencies ++= Seq(
"io.gatling.highcharts" % "gatling-charts-highcharts" % "3.9.5" % Test,
"io.gatling" % "gatling-test-framework" % "3.9.5" % Test,
"com.github.phisgr" % "gatling-grpc" % "0.16.0" % Test,
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"
)
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf")

Test / PB.targets := Seq(
scalapb.gen() -> (Test / sourceManaged).value / "scalapb"
)
Test / PB.targets := Seq(scalapb.gen() -> (Test / sourceManaged).value / "scalapb")
2 changes: 1 addition & 1 deletion samples/grpc/local-drone-control-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

Compile / scalacOptions ++= Seq(
"-release:11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

Compile / scalacOptions ++= Seq(
"-release:11",
Expand Down
2 changes: 1 addition & 1 deletion samples/grpc/shopping-analytics-service-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

Compile / scalacOptions ++= Seq(
"-target:11",
Expand Down
2 changes: 1 addition & 1 deletion samples/grpc/shopping-cart-service-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

Compile / scalacOptions ++= Seq(
"-target:11",
Expand Down
2 changes: 1 addition & 1 deletion samples/replicated/shopping-cart-service-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

Compile / scalacOptions ++= Seq(
"-release",
Expand Down

0 comments on commit 2bff21b

Please sign in to comment.