Skip to content

Commit

Permalink
chore: update scala version (#2098)
Browse files Browse the repository at this point in the history
* chore: update scala version

* remove deprecated api usage

* use status code predicate
  • Loading branch information
octonato authored Apr 18, 2024
1 parent 450e19e commit 1205d01
Show file tree
Hide file tree
Showing 25 changed files with 33 additions and 30 deletions.
2 changes: 1 addition & 1 deletion docs/src/modules/java-protobuf/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Scala::
[.group-scala]
[source,scala,subs="attributes+"]
----
scalaVersion := "2.13.12"
scalaVersion := "2.13.13"
enablePlugins(KalixPlugin)
----
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ object Dependencies {
}

// changing the Scala version of the Java SDK affects end users
val ScalaVersion = "2.13.12"
val ScalaVersionForTooling = "2.12.18"
val ScalaVersion = "2.13.13"
val ScalaVersionForTooling = "2.12.19"

val ProtobufVersion = // akka.grpc.gen.BuildInfo.googleProtobufVersion
"3.21.12" // explicitly overriding the 3.21.1 version from Akka gRPC 2.1.6 (even though its build says 3.20.1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "customer"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-doc-snippets/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-eventsourced-counter/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-fibonacci-action/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-first-service/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
organization := "com.example"

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-reliable-timers/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-replicatedentity-examples/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-tracing/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
organization := "com.example"

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"


enablePlugins(KalixPlugin, JavaAppPackaging, DockerPlugin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-transfer-workflow/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-valueentity-counter/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-valueentity-shopping-cart/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-view-store/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "io.kalix.samples"
organizationHomepage := Some(url("https://kalix.io"))
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0")))

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion samples/scala-protobuf-web-resources/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
organization := "com.example"

scalaVersion := "2.13.12"
scalaVersion := "2.13.13"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
2 changes: 1 addition & 1 deletion sbt-plugin/src/sbt-test/sbt-kalix/compile-only/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scalaVersion := "2.13.12"
scalaVersion := "2.13.13"
resolvers += "Akka library repository".at("https://repo.akka.io/maven")
enablePlugins(KalixPlugin)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scalaVersion := "2.13.12"
scalaVersion := "2.13.13"
resolvers += "Akka library repository".at("https://repo.akka.io/maven")
enablePlugins(KalixPlugin)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scalaVersion := "2.13.12"
scalaVersion := "2.13.13"
resolvers += "Akka library repository".at("https://repo.akka.io/maven")
enablePlugins(KalixPlugin)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import akka.http.scaladsl.model.HttpMethods
import akka.http.scaladsl.model.IllegalRequestException
import akka.http.scaladsl.model.ParsingException
import akka.http.scaladsl.model.RequestEntityAcceptance
import akka.http.scaladsl.model.StatusCode
import akka.http.scaladsl.model.StatusCodes
import akka.http.scaladsl.model.Uri.Path
import com.google.api.HttpRule.PatternCase
Expand Down Expand Up @@ -62,11 +63,13 @@ object HttpEndpointMethodDefinition {
private type ExtractPathParameters = (Matcher, PathParameterEffect) => Unit

// This is used to support the "*" custom pattern
val ANY_METHOD = HttpMethod.custom(
name = "ANY",
safe = false,
idempotent = false,
requestEntityAcceptance = RequestEntityAcceptance.Tolerated)
val ANY_METHOD =
HttpMethod(
"ANY",
isSafe = false,
isIdempotent = false,
requestEntityAcceptance = RequestEntityAcceptance.Tolerated,
contentLengthAllowed = (forStatus: StatusCode) => forStatus.intValue < 200 || forStatus.intValue >= 300)

/**
* INTERNAL API
Expand Down

0 comments on commit 1205d01

Please sign in to comment.