Skip to content

Commit

Permalink
Update examples dependencies & scala-version (#630)
Browse files Browse the repository at this point in the history
* Update examples dependencies & scala-version

1. Scala Version `2.13.10` -> `2.13.14`
2. `grpc-netty` from `1.50.1` -> `1.64.0`
3. `zio-grpc-codegen` from `0.6.1` -> `0.6.2`
4. `sbt-protoc` from `1.0.6` -> `1.0.7`
5. (`scalapb`) `compilerplugin` from `0.11.10` -> `0.11.15`

* Update routeguide plugins.sbt (I forgot 'sbt-protoc' & 'zio-grpc-codegen')
  • Loading branch information
DemiKnight authored May 21, 2024
1 parent 4ed8cb7 commit def8d5d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions examples/fullapp/build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

ThisBuild / scalaVersion := "2.13.10"
ThisBuild / scalaVersion := "2.13.14"

ThisBuild / cancelable := true

ThisBuild / connectInput := true

val grpcVersion = "1.50.1"
val grpcVersion = "1.64.0"

lazy val protos = crossProject(JSPlatform, JVMPlatform)
.in(file("protos"))
Expand Down
8 changes: 4 additions & 4 deletions examples/fullapp/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ resolvers ++= Resolver.sonatypeOssRepos("snapshots")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")

addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.7")

val zioGrpcVersion = "0.6.1"
val zioGrpcVersion = "0.6.2"

libraryDependencies ++= Seq(
"com.thesamet.scalapb.zio-grpc" %% "zio-grpc-codegen" % zioGrpcVersion,
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.7"
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.15"
)

// For Scala.js:
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")

Expand Down
4 changes: 2 additions & 2 deletions examples/helloworld/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
scalaVersion := "2.13.10"
scalaVersion := "2.13.14"

resolvers ++= Resolver.sonatypeOssRepos("snapshots")

val grpcVersion = "1.50.1"
val grpcVersion = "1.64.0"

Compile / PB.targets := Seq(
scalapb.gen(grpc = true) -> (Compile / sourceManaged).value,
Expand Down
6 changes: 3 additions & 3 deletions examples/helloworld/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ resolvers ++= Resolver.sonatypeOssRepos("snapshots")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")

addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.7")

val zioGrpcVersion = "0.6.1"
val zioGrpcVersion = "0.6.2"

libraryDependencies ++= Seq(
"com.thesamet.scalapb.zio-grpc" %% "zio-grpc-codegen" % zioGrpcVersion,
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.10"
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.15"
)
4 changes: 2 additions & 2 deletions examples/routeguide/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
scalaVersion := "2.13.10"
scalaVersion := "2.13.14"

resolvers ++= Resolver.sonatypeOssRepos("snapshots")

val grpcVersion = "1.50.1"
val grpcVersion = "1.64.0"

Compile / PB.targets := Seq(
scalapb.gen(grpc = true) -> (Compile / sourceManaged).value,
Expand Down
6 changes: 3 additions & 3 deletions examples/routeguide/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ resolvers ++= Resolver.sonatypeOssRepos("snapshots")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")

addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.7")

val zioGrpcVersion = "0.6.1"
val zioGrpcVersion = "0.6.2"

libraryDependencies ++= Seq(
"com.thesamet.scalapb.zio-grpc" %% "zio-grpc-codegen" % zioGrpcVersion,
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.10"
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.15"
)

0 comments on commit def8d5d

Please sign in to comment.