File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -8,28 +8,26 @@ sonatypeBundleDirectory := (ThisBuild / baseDirectory).value / "target" / "sonat
88
99publish / skip := true
1010
11- /* Skipping common protos due to https://github.com/googleapis/api-common-protos/issues/83
1211def commonProtos =
1312 ProtosProject (
14- "com.google.api.grpc" % "proto-google-common-protos" % "1.18 .1",
13+ " com.google.api.grpc" % " proto-google-common-protos" % " 2.4 .1" ,
1514 grpc = true ,
1615 protoPackage = " google" ,
17- buildNumber = 2
16+ buildNumber = 0
1817 )
1918lazy val commonProtos09 = commonProtos.scalapb09
2019lazy val commonProtos10 = commonProtos.scalapb10
2120lazy val commonProtos11 = commonProtos.scalapb11
2221
2322val cloudPubSub = ProtosProject (
24- "com.google.api.grpc" % "proto-google-cloud-pubsub-v1" % "1.93.4 ",
23+ " com.google.api.grpc" % " proto-google-cloud-pubsub-v1" % " 1.96.2 " ,
2524 grpc = true ,
2625 protoPackage = " google" ,
2726 buildNumber = 0
2827).dependsOn(commonProtos)
2928lazy val cloudPubSub09 = cloudPubSub.scalapb09
3029lazy val cloudPubSub10 = cloudPubSub.scalapb10
3130lazy val cloudPubSub11 = cloudPubSub.scalapb11
32- */
3331
3432val pgvProto = ProtosProject (
3533 " io.envoyproxy.protoc-gen-validate" % " pgv-java-stub" % " 0.6.1" ,
Original file line number Diff line number Diff line change @@ -100,6 +100,16 @@ final case class ProtosProject(
100100 }.taskValue,
101101 Compile / packageBin / packageOptions += {
102102 Package .ManifestAttributes (" ScalaPB-Options-Proto" -> optionsFile)
103+ },
104+ // Workaround for https://github.com/googleapis/java-common-protos/issues/210
105+ Compile / PB .runProtoc := {
106+ val runner = (Compile / PB .runProtoc).value
107+ protocbridge.ProtocRunner .fromFunction { (args, extraEnv) =>
108+ runner.run(
109+ args.filterNot(_.contains(" google/cloud/common_resources.proto" )),
110+ extraEnv
111+ )
112+ }
103113 }
104114 )
105115 }
@@ -115,7 +125,7 @@ final case class ProtosProject(
115125 )
116126
117127 val scalapb11 : Project =
118- protoProject(" 0.11.3 " ).dependsOn(
128+ protoProject(" 0.11.5 " ).dependsOn(
119129 dependencies.map(d => ClasspathDependency (d.scalapb11, None )): _*
120130 )
121131
You can’t perform that action at this time.
0 commit comments