diff --git a/build.sbt b/build.sbt index 7f9cd763e..c7053a06c 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ import sbt.{Test, project} import wartremover.Wart //val scala3 = "3.2.0" -val scala213 = "2.13.11" +val scala213 = "2.13.14" val scala212 = "2.12.17" val supportedScalaVersions = List(scala212, scala213) diff --git a/build.scala-2.13.sbt.lock b/build.scala-2.13.sbt.lock index 097cfcf11..572138ef9 100644 --- a/build.scala-2.13.sbt.lock +++ b/build.scala-2.13.sbt.lock @@ -1,6 +1,6 @@ { "lockVersion" : 1, - "timestamp" : "2024-07-03T10:48:38.551231174Z", + "timestamp" : "2024-07-04T12:12:35.304405Z", "configurations" : [ "compile", "optional", @@ -650,11 +650,11 @@ { "org" : "org.scala-lang", "name" : "scala-library", - "version" : "2.13.11", + "version" : "2.13.14", "artifacts" : [ { "name" : "scala-library.jar", - "hash" : "sha1:4fcd82e1ce42d7b157914b86864e7b3591e1e0d2" + "hash" : "sha1:f8b4afe89abe48ca670f620c7da89b71f93e6546" } ], "configurations" : [ @@ -666,11 +666,11 @@ { "org" : "org.scala-lang", "name" : "scala-reflect", - "version" : "2.13.11", + "version" : "2.13.14", "artifacts" : [ { "name" : "scala-reflect.jar", - "hash" : "sha1:965b382f32d914716b0c6a8d05956a3600a7b35a" + "hash" : "sha1:8e275fefb2a01e178db2cdfebb2181062a790b82" } ], "configurations" : [ diff --git a/project/plugins.sbt b/project/plugins.sbt index d7abfcb24..002dea608 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,10 +1,10 @@ -addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") +addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0") addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1") addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.4") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") -addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.10") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.1.0") addSbtPlugin("au.com.onegeek" %% "sbt-dotenv" % "2.1.233") addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.1.6") addSbtPlugin("software.purpledragon" % "sbt-dependency-lock" % "1.5.0") diff --git a/src/main/scala/com/cognite/sdk/scala/common/dataTypes.scala b/src/main/scala/com/cognite/sdk/scala/common/dataTypes.scala index 196d9ecd3..aae7d842d 100644 --- a/src/main/scala/com/cognite/sdk/scala/common/dataTypes.scala +++ b/src/main/scala/com/cognite/sdk/scala/common/dataTypes.scala @@ -10,26 +10,20 @@ import io.circe.{Decoder, Encoder, Json, JsonObject, KeyEncoder} import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder} import sttp.model.Uri -import scala.annotation.nowarn - trait ResponseWithCursor { val nextCursor: Option[String] } final case class ItemsWithCursor[A](items: Seq[A], nextCursor: Option[String] = None) extends ResponseWithCursor object ItemsWithCursor { - @nowarn implicit def itemsWithCursorEncoder[A: Encoder]: Encoder[ItemsWithCursor[A]] = deriveEncoder[ItemsWithCursor[A]] - @nowarn implicit def itemsWithCursorDecoder[A: Decoder]: Decoder[ItemsWithCursor[A]] = deriveDecoder[ItemsWithCursor[A]] } final case class Items[A](items: Seq[A]) object Items { - @nowarn implicit def itemsEncoder[A: Encoder]: Encoder[Items[A]] = deriveEncoder[Items[A]] - @nowarn implicit def itemsDecoder[A: Decoder]: Decoder[Items[A]] = deriveDecoder[Items[A]] } final case class ItemsWithIgnoreUnknownIds[A](items: Seq[A], ignoreUnknownIds: Boolean)