Skip to content

Commit

Permalink
bump: scala-library 2.13.15 (was 2.13.12) (#3294)
Browse files Browse the repository at this point in the history
* bump: scala-library 2.13.15 (was 2.13.12)

* Some changes to compile on 2.13.15: 
  * Update wconf to let scala+java deprecated annotation through
  * name conflicts from surrounding scope
  * inferred Any type params now explicit

---------

Co-authored-by: Johan Andrén <[email protected]>
  • Loading branch information
scala-steward and johanandren authored Dec 18, 2024
1 parent 12d9f23 commit d9565ac
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,12 @@ import scala.concurrent.Future
implicit val um: Unmarshaller[HttpResponse, StorageObject] = Unmarshaller.withMaterializer {
implicit ec => implicit mat =>
{
case HttpResponse(status, _, entity, _) if status.isSuccess() =>
Unmarshal(entity).to[StorageObject]
case HttpResponse(status, _, entity, _) =>
Unmarshal(entity).to[String].flatMap { errorString =>
Future.failed(new RuntimeException(s"Uploading part failed with status $status: $errorString"))
case HttpResponse(responseStatus, _, responseEntity, _) if responseStatus.isSuccess() =>
Unmarshal(responseEntity).to[StorageObject]
case HttpResponse(responseStatus, _, responseEntity, _) =>
Unmarshal(responseEntity).to[String].flatMap { errorString =>
Future
.failed(new RuntimeException(s"Uploading part failed with status $responseStatus: $errorString"))
}
}: PartialFunction[HttpResponse, Future[StorageObject]]
}.withDefaultRetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class JmsMessageProducerSpec extends JmsSpec {
val jmsProducer = JmsMessageProducer(jmsSession, settings, 0)
jmsProducer.createMessage(
JmsMapMessage(
Map(
Map[String, Any](
"string" -> "string",
"int" -> 1,
"boolean" -> true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ class JmsConnectorsSpec extends JmsSpec {
val respondStreamControl: JmsConsumerControl =
JmsConsumer(JmsConsumerSettings(system, connectionFactory).withQueue("test"))
.collect {
case message: TextMessage => JmsTextMessage(message)
case textMessage: TextMessage => JmsTextMessage(textMessage)
}
.map { textMessage =>
textMessage.headers.foldLeft(JmsTextMessage(textMessage.body.reverse)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class JmsMessageProducerSpec extends JmsSpec {
val jmsProducer = JmsMessageProducer(jmsSession, settings, 0)
jmsProducer.createMessage(
JmsMapMessage(
Map(
Map[String, Any](
"string" -> "string",
"int" -> 1,
"boolean" -> true,
Expand Down
2 changes: 1 addition & 1 deletion jms/src/test/scala/docs/scaladsl/JmsConnectorsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ class JmsConnectorsSpec extends JmsSpec {
val respondStreamControl: JmsConsumerControl =
JmsConsumer(JmsConsumerSettings(system, connectionFactory).withQueue("test"))
.collect {
case message: TextMessage => JmsTextMessage(message)
case textMessage: TextMessage => JmsTextMessage(textMessage)
}
.map { textMessage =>
textMessage.headers.foldLeft(JmsTextMessage(textMessage.body.reverse)) {
Expand Down
3 changes: 2 additions & 1 deletion project/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ object Common extends AutoPlugin {
"-deprecation",
"-Xlint",
"-Ywarn-dead-code",
"-Wconf:cat=lint-deprecation:s",
"-release",
"8"
"11"
),
scalacOptions ++= (scalaVersion.value match {
case Dependencies.Scala213
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object Dependencies {

val CronBuild = sys.env.get("GITHUB_EVENT_NAME").contains("schedule")

val Scala213 = "2.13.12" // update even in link-validator.conf
val Scala213 = "2.13.15" // update even in link-validator.conf
val Scala3 = "3.3.4"
val Scala2Versions = Seq(Scala213)
val ScalaVersions = Dependencies.Scala2Versions :+ Dependencies.Scala3
Expand Down

0 comments on commit d9565ac

Please sign in to comment.