build with protoc 3.25.3 (#1209)

* build with protoc 3.25.3

* centralise protobuf versions
This commit is contained in:
PJ Fanning 2024-03-19 11:28:28 +01:00 committed by GitHub
parent da5d8098e8
commit fcd0e0710e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -18,6 +18,11 @@ import scala.language.implicitConversions
object Dependencies {
import DependencyHelpers._
object Protobuf {
val protobufJavaVersion = "3.25.3"
val protocVersion = protobufJavaVersion
}
lazy val java8CompatVersion = settingKey[String]("The version of scala-java8-compat to use.")
.withRank(KeyRanks.Invisible) // avoid 'unused key' warning
@ -30,7 +35,6 @@ object Dependencies {
// https://github.com/real-logic/aeron/blob/1.x.y/build.gradle
val agronaVersion = "1.19.2"
val nettyVersion = "4.1.107.Final"
val protobufJavaVersion = "3.25.3"
val logbackVersion = "1.3.14"
val jacksonCoreVersion = "2.16.2"
@ -172,7 +176,7 @@ object Dependencies {
val reactiveStreamsTck = ("org.reactivestreams" % "reactive-streams-tck" % reactiveStreamsVersion % Test)
.exclude("org.testng", "testng")
val protobufRuntime = "com.google.protobuf" % "protobuf-java" % protobufJavaVersion % Test
val protobufRuntime = "com.google.protobuf" % "protobuf-java" % Protobuf.protobufJavaVersion % Test
// YCSB (Yahoo Cloud Serving Benchmark https://ycsb.site)
val ycsb = "site.ycsb" % "core" % "0.17.0" % Test
@ -195,7 +199,7 @@ object Dependencies {
val logback = Compile.logback % "optional;provided;test"
val protobufRuntime = "com.google.protobuf" % "protobuf-java" % protobufJavaVersion % "optional;provided"
val protobufRuntime = "com.google.protobuf" % "protobuf-java" % Protobuf.protobufJavaVersion % "optional;provided"
}

View file

@ -40,7 +40,7 @@ object Protobuf {
// this keeps intellij happy for files that use the shaded protobuf
Compile / unmanagedJars += (LocalProject("protobuf-v3") / Compile / packageBin).value,
protoc := "protoc",
protocVersion := "3.20.3",
protocVersion := Dependencies.Protobuf.protocVersion,
generate := {
val sourceDirs = paths.value
val targetDirs = outputPaths.value