Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Non-AWS dependency updates #2516

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
cb7eae1
Update logback-classic to 1.5.14
gu-scala-steward-public-repos[bot] Dec 19, 2024
7482050
Update jackson-annotations to 2.17.3
gu-scala-steward-public-repos[bot] Dec 19, 2024
b857dd7
Update google-cloud-bigquery to 2.43.3
gu-scala-steward-public-repos[bot] Dec 19, 2024
9cec040
Update tapir-aws-lambda to 1.11.10
gu-scala-steward-public-repos[bot] Dec 19, 2024
cd3b51e
Update stripe-java to 28.2.0
gu-scala-steward-public-repos[bot] Dec 19, 2024
f285148
Update zio to 2.1.14
gu-scala-steward-public-repos[bot] Dec 19, 2024
64c126c
Update zio-logging-slf4j to 2.4.0
gu-scala-steward-public-repos[bot] Dec 19, 2024
4152500
Update http4s-circe to 0.23.30
gu-scala-steward-public-repos[bot] Dec 19, 2024
78ffaa3
Update http4s-core to 0.23.30
gu-scala-steward-public-repos[bot] Dec 19, 2024
80cf5cc
Update mockito-core to 5.14.2
gu-scala-steward-public-repos[bot] Dec 19, 2024
e9d1b9f
Update scala-parallel-collections to 1.1.0
gu-scala-steward-public-repos[bot] Dec 19, 2024
f07d8c7
Update sbt to 1.10.6
gu-scala-steward-public-repos[bot] Dec 19, 2024
e74bc08
Update scalacheck to 1.18.1
gu-scala-steward-public-repos[bot] Dec 19, 2024
a58cdc2
Update scalafmt-core to 3.8.3
gu-scala-steward-public-repos[bot] Dec 19, 2024
382354d
Reformat with scalafmt 3.8.3
gu-scala-steward-public-repos[bot] Dec 19, 2024
079f1f6
Add 'Reformat with scalafmt 3.8.3' to .git-blame-ignore-revs
gu-scala-steward-public-repos[bot] Dec 19, 2024
5f1b88b
Update scalamock to 6.0.0
gu-scala-steward-public-repos[bot] Dec 19, 2024
2ea6d08
Update cats-effect to 3.5.7
gu-scala-steward-public-repos[bot] Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ c7065a7fd22fc65c30d5c71f7ce819e84133be1b

# Scala Steward: Reformat with scalafmt 3.7.17
42870d8b202ac19404b5de4aaa50a6c510542c91

# Scala Steward: Reformat with scalafmt 3.8.3
382354d34b5ee5298908cc8f43aaa17623503f70
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=3.7.17
version=3.8.3
maxColumn = 120
trailingCommas = always
align.preset = none
Expand Down
12 changes: 9 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ lazy val `zuora-models` = library(
scala3Settings,
)
.settings(
libraryDependencies += "com.gu" %% "support-internationalisation" % "0.16" exclude ("com.typesafe.scala-logging", "scala-logging_2.13"),
libraryDependencies += "com.gu" %% "support-internationalisation" % "0.16" exclude (
"com.typesafe.scala-logging",
"scala-logging_2.13",
),
)

lazy val `credit-processor` = library(
Expand Down Expand Up @@ -639,12 +642,15 @@ lazy val `product-move-api` = lambdaProject(
) exclude ("com.typesafe.scala-logging", "scala-logging_2.13"),
awsEvents,
awsLambda,
"com.softwaremill.sttp.client3" %% "zio" % sttpVersion exclude ("org.scala-lang.modules", "scala-collection-compat_2.13"),
"com.softwaremill.sttp.client3" %% "zio" % sttpVersion exclude (
"org.scala-lang.modules",
"scala-collection-compat_2.13",
),
awsS3,
awsSQS,
scalatest,
"com.softwaremill.sttp.client3" %% "zio-json" % sttpVersion,
"dev.zio" %% "zio-logging-slf4j" % "2.1.17",
"dev.zio" %% "zio-logging-slf4j" % "2.4.0",
"dev.zio" %% "zio-test" % zio2Version % Test,
"dev.zio" %% "zio-test-sbt" % zio2Version % Test,
"com.softwaremill.sttp.tapir" %% "tapir-core" % tapirVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ object Handler extends LazyLogging {
imovo <- ImovoClient(sttpBackend, config.imovo)
.leftMap(e => DigitalVoucherSuspendFailure(s"Failed to create Imovo client: $e"))
suspensions <- fetchSuspensionsToBeProcessed(salesforce).leftWiden[Failure]
suspensionResults <- EitherT.right[Failure].apply(
suspensions.traverse(suspension =>
sendSuspensionToDigitalVoucherApi(salesforce, imovo, LocalDateTime.now)(suspension).value
suspensionResults <- EitherT
.right[Failure]
.apply(
suspensions.traverse(suspension =>
sendSuspensionToDigitalVoucherApi(salesforce, imovo, LocalDateTime.now)(suspension).value,
),
)
)
maybeFailures = suspensionResults.collect { case Left(failure) => failure } match {
case Nil => None
case failures => Some[Failure](CompositeFailure(failures))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class HolidayStopSubscriptionCancellationTest extends AnyFlatSpec with Matchers
),
processedExpectedRefundedAfterCancellationDate.copy(
Actual_Price__c = Some(Price(estimatedPrice)),
)
),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ProcessorErrorHandlingSpec extends AnyFlatSpec with Matchers with OptionVa
result.flatMap(_.overallFailure) should contain atLeastOneOf (
OverallFailure("zuora boom 1"),
OverallFailure("zuora boom 2"),
OverallFailure("zuora boom 3")
OverallFailure("zuora boom 3"),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ case class toRCEmailPayloadProductSwitchAttributes(
payment_frequency: String,
currency: String,
subscription_id: String,
) extends EmailPayloadAttributes
derives JsonEncoder
) extends EmailPayloadAttributes derives JsonEncoder

case class RCtoSPEmailPayloadProductSwitchAttributes(
first_name: String,
Expand All @@ -213,16 +212,14 @@ case class RCtoSPEmailPayloadProductSwitchAttributes(
payment_frequency: String,
currency: String,
subscription_id: String,
) extends EmailPayloadAttributes
derives JsonEncoder
) extends EmailPayloadAttributes derives JsonEncoder

case class EmailPayloadCancellationAttributes(
first_name: String,
last_name: String,
product_type: String,
cancellation_effective_date: Option[String],
) extends EmailPayloadAttributes
derives JsonEncoder
) extends EmailPayloadAttributes derives JsonEncoder

case class EmailPayloadUpdateAmountAttributes(
first_name: String,
Expand All @@ -231,8 +228,7 @@ case class EmailPayloadUpdateAmountAttributes(
currency: String,
frequency: String,
next_payment_date: String,
) extends EmailPayloadAttributes
derives JsonEncoder
) extends EmailPayloadAttributes derives JsonEncoder

case class EmailPayloadContactAttributes(SubscriberAttributes: EmailPayloadAttributes) derives JsonEncoder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ object ProductMoveEndpointTypes {
sealed trait OutputBody
case class Success(
@description("Success message.") message: String,
) extends OutputBody
derives JsonCodec
) extends OutputBody derives JsonCodec
case class PreviewResult(
@description("The amount payable by the customer today") amountPayableToday: BigDecimal,
@description(
Expand All @@ -49,8 +48,7 @@ object ProductMoveEndpointTypes {
@description(
"The next payment date of the new supporter plus subscription, i.e.: the second payment date",
) nextPaymentDate: LocalDate,
) extends OutputBody
derives JsonCodec
) extends OutputBody derives JsonCodec

case class BadRequest(@description("Error message.") message: String) extends ErrorResponse derives JsonCodec

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ object UpdateSupporterPlusAmountEndpointTypes {
sealed trait OutputBody derives JsonCodec
case class Success(
@description("Success message.") message: String,
) extends OutputBody
derives JsonCodec
) extends OutputBody derives JsonCodec

given Schema[Success] = inlineSchema(Schema.derived)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ case class SwitchProductUpdateRequest(
targetDate: Option[LocalDate] = None,
currentTerm: Option[String] = None,
currentTermPeriodType: Option[String] = None,
) extends SubscriptionUpdateRequest
derives JsonEncoder
) extends SubscriptionUpdateRequest derives JsonEncoder

case class UpdateSubscriptionAmount(
update: List[UpdateSubscriptionAmountItem],
) extends SubscriptionUpdateRequest
derives JsonEncoder
) extends SubscriptionUpdateRequest derives JsonEncoder

case class UpdateSubscriptionAmountItem(
contractEffectiveDate: LocalDate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ object CardUpdatedMessageBody {
(JsPath \ "customer").read[String].map(StripeCustomerId.apply) and
(
(JsPath \ "exp_month").read[Int] and
(JsPath \ "exp_year").read[Int],
(JsPath \ "exp_year").read[Int]
)(StripeExpiry.apply _) and
(JsPath \ "last4").read[String].map(StripeLast4.apply)
)(EventDataObject.apply _)
Expand Down
24 changes: 12 additions & 12 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ object Dependencies {
val awsSdkVersion = "2.27.24"
val circeVersion = "0.14.10"
val sttpVersion = "3.10.1"
val http4sVersion = "0.22.15" // keep version 0.22.15, later versions pull in cats effect 3 which is not compatible
val http4sVersion = "0.23.30" // keep version 0.23.30, later versions pull in cats effect 3 which is not compatible
val catsVersion = "2.12.0"
val catsEffectVersion = "2.5.5"
val catsEffectVersion = "3.5.7"
val logging: Seq[ModuleID] = Seq(
"ch.qos.logback" % "logback-classic" % "1.5.11",
"ch.qos.logback" % "logback-classic" % "1.5.14",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5",
)

Expand All @@ -38,7 +38,7 @@ object Dependencies {
val scalaLambda = "io.github.mkotsur" %% "aws-lambda-scala" % "0.3.0"

// GCP
val googleBigQuery = "com.google.cloud" % "google-cloud-bigquery" % "2.43.1"
val googleBigQuery = "com.google.cloud" % "google-cloud-bigquery" % "2.43.3"

// Cats
val catsCore = "org.typelevel" %% "cats-core" % catsVersion
Expand Down Expand Up @@ -77,22 +77,22 @@ object Dependencies {

// Other
val zio = "dev.zio" %% "zio" % "1.0.17"
val zio2Version = "2.0.22"
val zio2Version = "2.1.14"
val zio2 = "dev.zio" %% "zio" % zio2Version
val tapirVersion = "1.9.11"
val tapirVersion = "1.11.10"
val enumeratum = "com.beachape" %% "enumeratum" % "1.7.5"
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "2.3.0"
val stripe = "com.stripe" % "stripe-java" % "22.31.0"
val parallelCollections = "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4"
val stripe = "com.stripe" % "stripe-java" % "28.2.0"
val parallelCollections = "org.scala-lang.modules" %% "scala-parallel-collections" % "1.1.0"

// Testing
val diffx = "com.softwaremill.diffx" %% "diffx-scalatest-should" % "0.9.0" % Test
val scalatest = "org.scalatest" %% "scalatest" % "3.2.19" % Test
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.17.1" % Test
val scalaMock = "org.scalamock" %% "scalamock" % "5.2.0" % Test
val mockito = "org.mockito" % "mockito-core" % "5.14.1" % Test
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.18.1" % Test
val scalaMock = "org.scalamock" %% "scalamock" % "6.0.0" % Test
val mockito = "org.mockito" % "mockito-core" % "5.14.2" % Test
// play-json still uses an old version of jackson-core which has a vulnerability - https://security.snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-7569538
val jacksonVersion = "2.17.2"
val jacksonVersion = "2.17.3"

val jacksonDependencies: Seq[ModuleID] = Seq(
"com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion,
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.10.2
sbt.version=1.10.6
Loading