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

Dependency updates #343

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,33 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10, 3.2.1]
scala: [2.13.10, 3.2.2]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download Java (temurin@11)
id: download-java-temurin-11
if: matrix.java == 'temurin@11'
uses: typelevel/download-java@v1
uses: typelevel/download-java@v2
with:
distribution: temurin
java-version: 11

- name: Setup Java (temurin@11)
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-temurin-11.outputs.jdkFile }}

- name: Cache sbt
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.sbt
Expand All @@ -75,11 +75,11 @@ jobs:
run: sbt '++ ${{ matrix.scala }}' test

- name: Check binary compatibility
if: matrix.java == 'temurin@11'
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
run: sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues

- name: Generate API documentation
if: matrix.java == 'temurin@11'
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
run: sbt '++ ${{ matrix.scala }}' doc

- name: Make target directories
Expand All @@ -92,7 +92,7 @@ jobs:

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
path: targets.tar
Expand All @@ -109,28 +109,28 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download Java (temurin@11)
id: download-java-temurin-11
if: matrix.java == 'temurin@11'
uses: typelevel/download-java@v1
uses: typelevel/download-java@v2
with:
distribution: temurin
java-version: 11

- name: Setup Java (temurin@11)
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-temurin-11.outputs.jdkFile }}

- name: Cache sbt
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.sbt
Expand All @@ -142,7 +142,7 @@ jobs:
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Download target directories (2.13.10)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.10

Expand All @@ -151,12 +151,12 @@ jobs:
tar xf targets.tar
rm targets.tar

- name: Download target directories (3.2.1)
uses: actions/download-artifact@v2
- name: Download target directories (3.2.2)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3.2.1
name: target-${{ matrix.os }}-${{ matrix.java }}-3.2.2

- name: Inflate target directories (3.2.1)
- name: Inflate target directories (3.2.2)
run: |
tar xf targets.tar
rm targets.tar
Expand Down
11 changes: 6 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import nl.zolotko.sbt.jfr.{JfrRecording, JfrRecorderOptions}
import scala.concurrent.duration.DurationInt

val catsVersion = "2.9.0"
val catsParseVersion = "0.3.8"
val catsParseVersion = "0.3.9"
val catsEffectVersion = "3.1.1"
val catsTestkitScalaTestVersion = "2.1.5"
val circeVersion = "0.14.3"
val doobieVersion = "1.0.0-RC2"
val flywayVersion = "9.10.2"
val fs2Version = "3.4.0"
val http4sVersion = "0.23.16"
val flywayVersion = "9.14.1"
val fs2Version = "3.5.0"
val http4sVersion = "0.23.18"
val http4sBlazeVersion = "0.23.13"
val kindProjectorVersion = "0.13.2"
val literallyVersion = "1.1.0"
Expand All @@ -23,7 +23,7 @@ val testContainersVersion = "0.40.12"
val typenameVersion = "1.0.0"

val Scala2 = "2.13.10"
val Scala3 = "3.2.1"
val Scala3 = "3.2.2"
ThisBuild / scalaVersion := Scala2
ThisBuild / crossScalaVersions := Seq(Scala2, Scala3)

Expand All @@ -49,6 +49,7 @@ ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"))

lazy val commonSettings = Seq(
//scalacOptions --= Seq("-Wunused:params", "-Wunused:imports", "-Wunused:patvars", "-Wdead-code", "-Wunused:locals", "-Wunused:privates", "-Wunused:implicits"),
scalacOptions += "-Wconf:msg=unused value of type org.scalatest.Assertion:silent",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-testkit" % catsVersion % "test",
"org.typelevel" %% "cats-testkit-scalatest" % catsTestkitScalaTestVersion % "test"
Expand Down
8 changes: 4 additions & 4 deletions modules/sql/src/main/scala/SqlMapping.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,7 @@ trait SqlMappingLike[F[_]] extends CirceMappingLike[F] with SqlModule[F] { self
predicate = false
)

case _ => None
case _ =>
sys.error(s"Non-subobject mapping for field '$fieldName' of type ${parentContext.tpe}")
}

Expand Down Expand Up @@ -2332,7 +2332,7 @@ trait SqlMappingLike[F[_]] extends CirceMappingLike[F] with SqlModule[F] { self
val pred1 = pred0.map(p => contextualiseWhereTerms(context, baseRef, p))

val distOrders =
keyCols.map(col => OrderSelection(col.derive(baseRef).toTerm, true, true))
keyCols.map(col => OrderSelection(col.derive(baseRef).toTerm, true, true)) ++
oss.filterNot(os => keyCols.contains(columnForSqlTerm(context, os.term).getOrElse(sys.error(s"No column for term ${os.term}"))))
val distOrderCols = orderCols.diff(keyCols).map(_.derive(baseRef))

Expand Down Expand Up @@ -2867,7 +2867,7 @@ trait SqlMappingLike[F[_]] extends CirceMappingLike[F] with SqlModule[F] { self
val subtpes = narrows.map(_.subtpe)
val supertpe = context.tpe.underlying
assert(supertpe.underlying.isInterface || supertpe.underlying.isUnion)
subtpes.map(subtpe => assert(subtpe <:< supertpe))
subtpes.foreach(subtpe => assert(subtpe <:< supertpe))

val discriminator = discriminatorForType(context)
val narrowPredicates = subtpes.map { subtpe =>
Expand Down Expand Up @@ -3120,7 +3120,7 @@ trait SqlMappingLike[F[_]] extends CirceMappingLike[F] with SqlModule[F] { self
case Some(cols) => cols
case None =>
val keys = SqlMappingLike.this.keyColumnsForType(context).map(index)
keyColumnsMemo.put(key, keys)
keyColumnsMemo.put(key, keys): Unit
keys
}
}
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.8.0
sbt.version=1.8.2
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.4.17")
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.4.18")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.4")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.9.0")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.1")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.2")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.4")
addSbtPlugin("nl.zolotko.sbt" % "sbt-jfr" % "0.0.1")