diff --git a/scripts/create_repository.py b/scripts/create_repository.py index 9ade78254..df23a07c5 100755 --- a/scripts/create_repository.py +++ b/scripts/create_repository.py @@ -34,7 +34,7 @@ PROTOBUF_JAVA_VERSION = "4.29.0" JLINE_VERSION = '3.27.1' SCALAPB_VERSION = '0.11.17' -PROTOC_BRIDGE_VERSION = '0.9.7' +PROTOC_BRIDGE_VERSION = '0.9.8' GRPC_VERSION = '1.68.1' GRPC_COMMON_PROTOS_VERSION = '2.48.0' GRPC_LIBS = ['netty', 'protobuf', 'stub'] @@ -73,15 +73,18 @@ def select_root_artifacts(scala_version, scala_major, is_scala_3) -> List[str]: v for v in ROOT_SCALA_VERSIONS if v.startswith('2.') ) max_scala_2_major = '.'.join(max_scala_2_version.split('.')[:2]) + minor_version = int(scala_version.split('.')[1]) scala_2_version = scala_version scala_2_major = scala_major scalatest_major = scala_major + protoc_bridge_major = scala_2_major if is_scala_3: scala_2_version = max_scala_2_version scala_2_major = max_scala_2_major scalatest_major = '3' + protoc_bridge_major = max_scala_2_major if minor_version < 3 else '3' scalafmt_version = SCALAFMT_VERSION scalapb_version = SCALAPB_VERSION @@ -99,7 +102,7 @@ def select_root_artifacts(scala_version, scala_major, is_scala_3) -> List[str]: f'com.google.protobuf:protobuf-java:{PROTOBUF_JAVA_VERSION}', f'com.thesamet.scalapb:compilerplugin_{scala_2_major}:' + scalapb_version, - f'com.thesamet.scalapb:protoc-bridge_{scala_2_major}:' + + f'com.thesamet.scalapb:protoc-bridge_{protoc_bridge_major}:' + protoc_bridge_version, f'com.thesamet.scalapb:scalapb-runtime_{scala_2_major}:' + scalapb_version, diff --git a/third_party/repositories/scala_2_12.bzl b/third_party/repositories/scala_2_12.bzl index b25066a41..d28df107d 100644 --- a/third_party/repositories/scala_2_12.bzl +++ b/third_party/repositories/scala_2_12.bzl @@ -815,8 +815,8 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.12:0.9.7", - "sha256": "6d039a28d29253ac78aec0e3102f6423d269e65203c114a17f0d52a91d4876f4", + "artifact": "com.thesamet.scalapb:protoc-bridge_2.12:0.9.8", + "sha256": "4af997be5176753aa480ce40cbe9aab89ba659740a1ca6dae660afffb7bb343a", "deps": [ "@dev_dirs_directories", "@io_bazel_rules_scala_scala_library", diff --git a/third_party/repositories/scala_2_13.bzl b/third_party/repositories/scala_2_13.bzl index 891fc654d..dd8ed35f9 100644 --- a/third_party/repositories/scala_2_13.bzl +++ b/third_party/repositories/scala_2_13.bzl @@ -837,8 +837,8 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.8", + "sha256": "0b3827da2cd9bca867d6963c2a821e7eaff41f5ac3babf671c4c00408bd14a9b", "deps": [ "@dev_dirs_directories", "@io_bazel_rules_scala_scala_library", diff --git a/third_party/repositories/scala_3_1.bzl b/third_party/repositories/scala_3_1.bzl index e8bda4e22..6a25db21c 100644 --- a/third_party/repositories/scala_3_1.bzl +++ b/third_party/repositories/scala_3_1.bzl @@ -879,8 +879,8 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.8", + "sha256": "0b3827da2cd9bca867d6963c2a821e7eaff41f5ac3babf671c4c00408bd14a9b", "deps": [ "@dev_dirs_directories", "@io_bazel_rules_scala_scala_library_2", diff --git a/third_party/repositories/scala_3_2.bzl b/third_party/repositories/scala_3_2.bzl index 7d16e7242..006f2ef8f 100644 --- a/third_party/repositories/scala_3_2.bzl +++ b/third_party/repositories/scala_3_2.bzl @@ -879,8 +879,8 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.8", + "sha256": "0b3827da2cd9bca867d6963c2a821e7eaff41f5ac3babf671c4c00408bd14a9b", "deps": [ "@dev_dirs_directories", "@io_bazel_rules_scala_scala_library_2", diff --git a/third_party/repositories/scala_3_3.bzl b/third_party/repositories/scala_3_3.bzl index 62079504c..3a7a13b85 100644 --- a/third_party/repositories/scala_3_3.bzl +++ b/third_party/repositories/scala_3_3.bzl @@ -880,11 +880,11 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_3:0.9.8", + "sha256": "6e1e38e34f3aaa14c6d46defb66b819f03edbdc4d69965011955da2a4781df9c", "deps": [ "@dev_dirs_directories", - "@io_bazel_rules_scala_scala_library_2", + "@io_bazel_rules_scala_scala_library", ], }, "scala_proto_rules_scalapb_protoc_gen": { diff --git a/third_party/repositories/scala_3_4.bzl b/third_party/repositories/scala_3_4.bzl index 7d7fe65bd..9f75b8256 100644 --- a/third_party/repositories/scala_3_4.bzl +++ b/third_party/repositories/scala_3_4.bzl @@ -880,11 +880,11 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_3:0.9.8", + "sha256": "6e1e38e34f3aaa14c6d46defb66b819f03edbdc4d69965011955da2a4781df9c", "deps": [ "@dev_dirs_directories", - "@io_bazel_rules_scala_scala_library_2", + "@io_bazel_rules_scala_scala_library", ], }, "scala_proto_rules_scalapb_protoc_gen": { diff --git a/third_party/repositories/scala_3_5.bzl b/third_party/repositories/scala_3_5.bzl index 061f8c20f..c5b1d12c2 100644 --- a/third_party/repositories/scala_3_5.bzl +++ b/third_party/repositories/scala_3_5.bzl @@ -880,11 +880,11 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_3:0.9.8", + "sha256": "6e1e38e34f3aaa14c6d46defb66b819f03edbdc4d69965011955da2a4781df9c", "deps": [ "@dev_dirs_directories", - "@io_bazel_rules_scala_scala_library_2", + "@io_bazel_rules_scala_scala_library", ], }, "scala_proto_rules_scalapb_protoc_gen": { diff --git a/third_party/repositories/scala_3_6.bzl b/third_party/repositories/scala_3_6.bzl index 6e91ba7ed..231d609eb 100644 --- a/third_party/repositories/scala_3_6.bzl +++ b/third_party/repositories/scala_3_6.bzl @@ -889,11 +889,11 @@ artifacts = { ], }, "scala_proto_rules_scalapb_protoc_bridge": { - "artifact": "com.thesamet.scalapb:protoc-bridge_2.13:0.9.7", - "sha256": "403f0e7223c8fd052cff0fbf977f3696c387a696a3a12d7b031d95660c7552f5", + "artifact": "com.thesamet.scalapb:protoc-bridge_3:0.9.8", + "sha256": "6e1e38e34f3aaa14c6d46defb66b819f03edbdc4d69965011955da2a4781df9c", "deps": [ "@dev_dirs_directories", - "@io_bazel_rules_scala_scala_library_2", + "@io_bazel_rules_scala_scala_library", ], }, "scala_proto_rules_scalapb_protoc_gen": {