From 1dbfcc926c9c9572b83712702134c7ed3756ae9d Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sat, 21 Oct 2023 08:42:18 +0900 Subject: [PATCH] update protoc version (#305) --- build.sbt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index a70a814..45e6a8b 100644 --- a/build.sbt +++ b/build.sbt @@ -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", @@ -26,7 +28,7 @@ inThisBuild( url("https://www.thesamet.com") ) ), - PB.protocVersion := "3.15.6" + PB.protocVersion := protobufJava.revision ) ) @@ -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" @@ -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)