@@ -92,6 +92,23 @@ def rules_scala_setup(scala_compiler_srcjar = None):
92
92
],
93
93
)
94
94
95
+ # Needed by protobuf-21.7 and Bazel 6.5.0, as later versions require C++14.
96
+ if not native .existing_rule ("com_google_absl" ):
97
+ http_archive (
98
+ name = "com_google_absl" ,
99
+ sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8" ,
100
+ strip_prefix = "abseil-cpp-20220623.1" ,
101
+ url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz" ,
102
+ )
103
+
104
+ if not native .existing_rule ("protobuf" ):
105
+ http_archive (
106
+ name = "com_google_protobuf" ,
107
+ sha256 = "75be42bd736f4df6d702a0e4e4d30de9ee40eac024c4b845d17ae4cc831fe4ae" ,
108
+ strip_prefix = "protobuf-21.7" ,
109
+ url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.7.tar.gz" ,
110
+ )
111
+
95
112
if not native .existing_rule ("rules_cc" ):
96
113
http_archive (
97
114
name = "rules_cc" ,
@@ -112,12 +129,9 @@ def rules_scala_setup(scala_compiler_srcjar = None):
112
129
if not native .existing_rule ("rules_proto" ):
113
130
http_archive (
114
131
name = "rules_proto" ,
115
- sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd" ,
116
- strip_prefix = "rules_proto-5.3.0-21.7" ,
117
- urls = [
118
- "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz" ,
119
- "https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz" ,
120
- ],
132
+ sha256 = "6fb6767d1bef535310547e03247f7518b03487740c11b6c6adb7952033fe1295" ,
133
+ strip_prefix = "rules_proto-6.0.2" ,
134
+ url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz" ,
121
135
)
122
136
123
137
for scala_version in SCALA_VERSIONS :
0 commit comments