File tree 2 files changed +14
-6
lines changed
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
8
8
9
9
publish / skip := true
10
10
11
- /* Skipping common protos due to https://github.com/googleapis/api-common-protos/issues/83
12
11
def commonProtos =
13
12
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" ,
15
14
grpc = true ,
16
15
protoPackage = " google" ,
17
- buildNumber = 2
16
+ buildNumber = 0
18
17
)
19
18
lazy val commonProtos09 = commonProtos.scalapb09
20
19
lazy val commonProtos10 = commonProtos.scalapb10
21
20
lazy val commonProtos11 = commonProtos.scalapb11
22
21
23
22
val 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 " ,
25
24
grpc = true ,
26
25
protoPackage = " google" ,
27
26
buildNumber = 0
28
27
).dependsOn(commonProtos)
29
28
lazy val cloudPubSub09 = cloudPubSub.scalapb09
30
29
lazy val cloudPubSub10 = cloudPubSub.scalapb10
31
30
lazy val cloudPubSub11 = cloudPubSub.scalapb11
32
- */
33
31
34
32
val pgvProto = ProtosProject (
35
33
" 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(
100
100
}.taskValue,
101
101
Compile / packageBin / packageOptions += {
102
102
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
+ }
103
113
}
104
114
)
105
115
}
@@ -115,7 +125,7 @@ final case class ProtosProject(
115
125
)
116
126
117
127
val scalapb11 : Project =
118
- protoProject(" 0.11.3 " ).dependsOn(
128
+ protoProject(" 0.11.5 " ).dependsOn(
119
129
dependencies.map(d => ClasspathDependency (d.scalapb11, None )): _*
120
130
)
121
131
You can’t perform that action at this time.
0 commit comments