Skip to content

Commit

Permalink
update protoc version (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored Oct 20, 2023
1 parent 8d7daf8 commit 1dbfcc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ publish / skip := true

sonatypeProfileName := "com.thesamet"

def protobufJava = "com.google.protobuf" % "protobuf-java" % "3.24.4"

inThisBuild(
List(
organization := "com.thesamet.scalapb",
Expand All @@ -26,7 +28,7 @@ inThisBuild(
url("https://www.thesamet.com")
)
),
PB.protocVersion := "3.15.6"
PB.protocVersion := protobufJava.revision
)
)

Expand All @@ -44,6 +46,7 @@ lazy val core = projectMatrix
.settings(
name := "scalapb-validate-core",
libraryDependencies ++= Seq(
protobufJava,
"com.thesamet.scalapb.common-protos" %% "pgv-proto-scalapb_0.11" % (pgvVersion + "-0"),
"com.thesamet.scalapb.common-protos" %% "pgv-proto-scalapb_0.11" % (pgvVersion + "-0") % "protobuf",
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapbVersion % "protobuf"
Expand Down Expand Up @@ -88,6 +91,7 @@ lazy val codeGen = projectMatrix
buildInfoPackage := "scalapb.validate.compiler",
name := "scalapb-validate-codegen",
libraryDependencies ++= Seq(
protobufJava,
"com.thesamet.scalapb" %% "compilerplugin" % scalapbVersion,
// scalapb-runtime does not gent automatically added since we do not have Scala gen,
// and we want to make sure that a possibly older runtime (with different scalapb.proto)
Expand Down

0 comments on commit 1dbfcc9

Please sign in to comment.