Skip to content

Commit 6756872

Browse files
authored
Merge branch 'master' into update/s3-2.20.128
2 parents 2e14960 + f10c1be commit 6756872

File tree

31 files changed

+256
-53
lines changed

31 files changed

+256
-53
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Scala Steward: Reformat with scalafmt 3.7.12
2+
ca5770e327fea2fad0a3bf2f79f896e7a507d2d5

.github/workflows/scala-steward.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
schedule:
3+
- cron: '0 0 * * 0'
4+
5+
name: Launch Scala Steward
6+
7+
jobs:
8+
scala-steward:
9+
runs-on: ubuntu-22.04
10+
name: Launch Scala Steward
11+
steps:
12+
- name: Launch Scala Steward
13+
uses: scala-steward-org/scala-steward-action@v2
14+
with:
15+
github-app-id: ${{ secrets.APP_ID }}
16+
github-app-installation-id: ${{ secrets.APP_INSTALLATION_ID }}
17+
github-app-key: ${{ secrets.APP_PRIVATE_KEY }}

.mergify.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pull_request_rules:
2+
- name: Automatic merge on approval
3+
conditions:
4+
- label!=early-semver-major
5+
- label!=semver-spec-major
6+
- "#files=1"
7+
- "#approved-reviews-by>=1"
8+
- check-success=CI - Jenkins
9+
- author=scala-steward
10+
- or:
11+
- label=early-semver-minor
12+
- label=early-semver-patch
13+
actions:
14+
merge:
15+
method: merge

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.7.10
1+
version = 3.7.12
22
runner.dialect = scala3
33
fileOverride {
44
"glob:**/scala-2-modules/**" {

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)
2+
13
# scala-tutorials
4+
This is the main repo for all the sample code used in the scala tutorials.
5+
6+
# Compiling and Running Tests
7+
This repo uses a multi-module build with many sub modules.
8+
To compile the entire module, you may use the command `sbt compile`. However, this loads all the modules and compiles all of them, which might take some time.
9+
If you are interested in only a particular module, you can compile it by starting sbt shell and using the command `<sub-module-name>/compile`.
10+
Similarly, you can run the tests per module as `<module-name>/test`.
11+
12+
Here are some of the useful commands that can be used within tbe sbt shell
13+
14+
| SBT Command | Description |
15+
|---------------------------|-------------------------------------------------------------------------------------------------------|
16+
| project <sub-module-name> | Switch to a particular module. After this, the command `compile`, `test` etc runs only on that module |
17+
| <sub-module>/compile | Compile only the provided module |
18+
| projects | Lists all the sub modules |
19+
| <sub-module>/run | Run the main class within the sub-module |
220

21+
# Test Naming Standards
322
In this repository, we have classified the tests in 4 categories.
423

524
| Category | Description |
@@ -21,6 +40,6 @@ Note that these commands are defined at the root level of the project and hence
2140
| Live Test | `sbt liveTests` | `src/it/scala` or `src/it/scala-2` | Test class name must end with `LiveTest` |
2241
| Manual Test | `sbt manualTests` | `src/it/scala` or `src/it/scala-2` | Test class name must end with `ManualTest` |
2342

24-
# Code fomatting
43+
# Code formatting
2544

26-
Before creating a PR, make sure the code is correctly formatted running `sbt scalafmt`.
45+
Before creating a PR, run `sbt scalafmtAll` to automatically format the entire codebase. To check if there are any formatting issues(without fixing them), you may run `sbt scalafmtCheckAll`

build.sbt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ val jUnitInterface = "com.github.sbt" % "junit-interface" % "0.13.3" % "test"
99
val catsEffect = "org.typelevel" %% "cats-effect" % "3.5.1"
1010
val catEffectTest = "org.typelevel" %% "cats-effect-testkit" % "3.5.1" % Test
1111
val scalaReflection = "org.scala-lang" % "scala-reflect" % scalaV
12-
val logback = "ch.qos.logback" % "logback-classic" % "1.3.8"
12+
val logback = "ch.qos.logback" % "logback-classic" % "1.3.11"
1313
val embedMongoVersion = "4.7.1"
1414

1515
val scalaTestDeps = Seq(
@@ -81,7 +81,7 @@ lazy val scala_core_7 = (project in file("scala-core-7"))
8181
libraryDependencies ++= scalaTestDeps,
8282
libraryDependencies += jUnitInterface,
8383
libraryDependencies += "com.github.scopt" %% "scopt" % "4.1.0",
84-
libraryDependencies += "org.rogach" %% "scallop" % "4.1.0",
84+
libraryDependencies += "org.rogach" %% "scallop" % "5.0.0",
8585
libraryDependencies += "org.backuity.clist" %% "clist-core" % "3.5.1",
8686
libraryDependencies += "org.backuity.clist" %% "clist-macros" % "3.5.1" % "provided",
8787
libraryDependencies += "args4j" % "args4j" % "2.33"
@@ -219,14 +219,15 @@ lazy val scala_akka_2 = (project in file("scala-akka-2"))
219219
"com.lightbend.akka" %% "akka-stream-alpakka-sse" % "5.0.0",
220220
"com.typesafe.akka" %% "akka-persistence-typed" % AkkaVersion,
221221
"com.typesafe.akka" %% "akka-actor-testkit-typed" % AkkaVersion % "it,test",
222-
"com.typesafe.akka" %% "akka-http-testkit" % AkkaHttpVersion % "it,test"
222+
"com.typesafe.akka" %% "akka-http-testkit" % AkkaHttpVersion % "it,test",
223+
"com.typesafe.akka" %% "akka-stream-testkit" % AkkaVersion % Test
223224
) ++ scalaTestDeps.map(_.withConfigurations(Some("it,test")))
224225
)
225226
val monocleVersion = "2.1.0"
226227
val slickVersion = "3.4.1"
227228
val shapelessVersion = "2.3.10"
228229
val scalazVersion = "7.3.7"
229-
val fs2Version = "3.7.0"
230+
val fs2Version = "3.8.0"
230231
val AkkaVersion = "2.8.0"
231232
val AkkaHttpVersion = "10.5.0"
232233
val reactiveMongo = "1.0.10"
@@ -259,7 +260,7 @@ lazy val scala_libraries = (project in file("scala-libraries"))
259260

260261
val circeVersion = "0.14.5"
261262
val monixVersion = "3.4.1"
262-
val elastic4sVersion = "8.8.1"
263+
val elastic4sVersion = "8.8.3"
263264
val sparkVersion = "3.4.1"
264265

265266
val sparkCoreDep = "org.apache.spark" %% "spark-core" % sparkVersion
@@ -364,7 +365,7 @@ lazy val scala_libraries_4 = (project in file("scala-libraries-4"))
364365
sparkCoreDep,
365366
logback,
366367
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5",
367-
"org.typelevel" %% "cats-core" % "2.9.0"
368+
"org.typelevel" %% "cats-core" % "2.10.0"
368369
),
369370
libraryDependencies ++= Seq(
370371
"com.clever-cloud.pulsar4s" %% "pulsar4s-core" % "2.9.0",
@@ -373,7 +374,7 @@ lazy val scala_libraries_4 = (project in file("scala-libraries-4"))
373374
),
374375
libraryDependencies ++= Seq(
375376
"software.amazon.awssdk" % "s3" % "2.20.128",
376-
"com.amazonaws" % "aws-java-sdk-s3" % "1.12.514" % IntegrationTest,
377+
"com.amazonaws" % "aws-java-sdk-s3" % "1.12.532" % IntegrationTest,
377378
"com.dimafeng" %% "testcontainers-scala-scalatest" % "0.40.17" % IntegrationTest,
378379
"com.dimafeng" %% "testcontainers-scala-localstack-v2" % "0.40.17" % IntegrationTest
379380
),
@@ -386,13 +387,13 @@ lazy val scala_libraries_4 = (project in file("scala-libraries-4"))
386387
)
387388

388389
val spireVersion = "0.18.0"
389-
val kafkaVersion = "3.5.0"
390+
val kafkaVersion = "3.5.1"
390391
val pureconfigVersion = "0.17.4"
391-
val jackSonVersion = "2.15.1"
392+
val jackSonVersion = "2.15.2"
392393
val log4jApiScalaVersion = "12.0"
393394
val log4jVersion = "2.20.0"
394395
val avro4sVersion = "3.1.1"
395-
val kafkaAvroSerializer = "6.0.0"
396+
val kafkaAvroSerializer = "6.0.14"
396397

397398
lazy val scala_libraries_5 = (project in file("scala-libraries-5"))
398399
.settings(
@@ -508,7 +509,7 @@ lazy val scala212 = (project in file("scala-2-modules/scala212"))
508509

509510
addCommandAlias(
510511
"ci",
511-
";clean;compile;test:compile;it:compile;scalafmtCheckAll;test"
512+
";compile;test:compile;it:compile;scalafmtCheckAll;test"
512513
)
513514

514515
addCommandAlias(
@@ -518,7 +519,7 @@ addCommandAlias(
518519

519520
addCommandAlias(
520521
"ciFull",
521-
""";ci; set ThisBuild/IntegrationTest/testOptions += Tests.Filter(t => !t.endsWith("ManualTest") && !t.endsWith("LiveTest") ); it:test""".stripMargin
522+
""";clean; ci; set ThisBuild/IntegrationTest/testOptions += Tests.Filter(t => !t.endsWith("ManualTest") && !t.endsWith("LiveTest") ); it:test""".stripMargin
522523
)
523524

524525
addCommandAlias(
@@ -532,3 +533,8 @@ addCommandAlias(
532533
)
533534

534535
lazy val playGroup = (project in file("play-scala"))
536+
537+
//Uncomment this to enable scala-js module. It needs nodejs module as well in local machine
538+
//lazy val scalajs = project in file("scala-js")
539+
lazy val scalatra = project in file("scalatra")
540+
lazy val benchmark = project in file("specialized-benchmark")

play-scala/application-tests/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ enablePlugins(PlayScala)
88
scalaVersion := ScalaVersions.scala2Version
99

1010
libraryDependencies += "com.google.inject" % "guice" % "6.0.0"
11-
libraryDependencies += "com.h2database" % "h2" % "1.4.192"
12-
libraryDependencies += "org.postgresql" % "postgresql" % "42.2.14"
11+
libraryDependencies += "com.h2database" % "h2" % "1.4.200"
12+
libraryDependencies += "org.postgresql" % "postgresql" % "42.2.27"
1313
libraryDependencies += "com.typesafe.play" %% "play-slick" % "5.1.0"
1414
libraryDependencies += "com.typesafe.play" %% "play-slick-evolutions" % "5.1.0"
1515
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test

play-scala/caching-in-play/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ libraryDependencies += guice
1111
libraryDependencies += caffeine
1212
libraryDependencies += ws
1313
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "5.0.0" % Test
14-
libraryDependencies += "org.mockito" % "mockito-core" % "3.5.13" % Test
14+
libraryDependencies += "org.mockito" % "mockito-core" % "3.5.15" % Test
1515

1616
PlayKeys.devSettings += "play.server.http.port" -> "9000"

play-scala/configuration-access/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ scalaVersion := ScalaVersions.scala2Version
99

1010
libraryDependencies += guice
1111
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "5.0.0" % Test
12-
libraryDependencies += "org.mockito" % "mockito-scala_2.13" % "1.15.0" % Test
12+
libraryDependencies += "org.mockito" % "mockito-scala_2.13" % "1.15.1" % Test
1313

1414
// Adds additional packages into Twirl
1515
//TwirlKeys.templateImports += "com.baeldung.controllers._"

play-scala/dependency-injection/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ scalaVersion := ScalaVersions.scala2Version
88

99
libraryDependencies += guice
1010
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "5.0.0" % Test
11-
libraryDependencies += "com.softwaremill.macwire" %% "macros" % "2.4.0" % Provided
12-
libraryDependencies += "com.softwaremill.macwire" %% "util" % "2.4.0"
11+
libraryDependencies += "com.softwaremill.macwire" %% "macros" % "2.4.2" % Provided
12+
libraryDependencies += "com.softwaremill.macwire" %% "util" % "2.4.2"

0 commit comments

Comments
 (0)