File tree Expand file tree Collapse file tree 3 files changed +25
-12
lines changed
sdk-platform-java/gax-java Expand file tree Collapse file tree 3 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,26 @@ workspace(name = "gapic_generator_java")
22
33load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
44
5+ http_archive (
6+ name = "rules_java" ,
7+ sha256 = "47632cc506c858011853073449801d648e10483d4b50e080ec2549a4b2398960" ,
8+ urls = [
9+ "https://github.com/bazelbuild/rules_java/releases/download/8.15.2/rules_java-8.15.2.tar.gz" ,
10+ ],
11+ )
12+
13+ load ("@rules_java//java:rules_java_deps.bzl" , "rules_java_dependencies" )
14+ rules_java_dependencies ()
15+
16+ http_archive (
17+ name = "rules_python" ,
18+ sha256 = "c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311" ,
19+ strip_prefix = "rules_python-0.31.0" ,
20+ url = "https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz" ,
21+ )
22+
23+ load ("@rules_python//python:repositories.bzl" , "py_repositories" )
24+ py_repositories ()
525# gax-java and its transitive dependencies must be imported before
626# gapic-generator-java dependencies to match the order in googleapis repository,
727# which in its turn, prioritizes actual generated clients runtime dependencies
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ version.gax_httpjson=2.76.1-SNAPSHOT
2626# The protobuf version is only used for generating gradle files for showcase module,
2727# not for self-service clients (from googleapis project).
2828
29- version.com_google_protobuf =3.25.8
29+ version.com_google_protobuf =4.33.2
3030version.google_java_format =1.15.0
3131version.io_grpc =1.80.0
3232
@@ -78,7 +78,7 @@ maven.org_codehaus_mojo_animal_sniffer_annotations=org.codehaus.mojo:animal-snif
7878maven.javax_annotation_javax_annotation_api =javax.annotation:javax.annotation-api:1.3.2
7979maven.org_graalvm_sdk =org.graalvm.sdk:nativeimage:24.1.2
8080maven.org_slf4j_slf4j_api =org.slf4j:slf4j-api:2.0.16
81- maven.com_google_protobuf_protobuf_java_util =com.google.protobuf:protobuf-java-util:3.25.5
81+ maven.com_google_protobuf_protobuf_java_util =com.google.protobuf:protobuf-java-util:4.33.2
8282
8383# Testing maven artifacts
8484maven.junit_junit =junit:junit:4.13.2
Original file line number Diff line number Diff line change @@ -47,20 +47,13 @@ def com_google_api_gax_java_repositories():
4747 # properties file.
4848
4949 _protobuf_version = PROPERTIES ["version.com_google_protobuf" ]
50- _protobuf_version_in_link = "v%s" % _protobuf_version
50+ _protobuf_source_tag = _protobuf_version [2 :] if _protobuf_version .startswith ("4." ) else _protobuf_version
51+ _protobuf_version_in_link = "v%s" % _protobuf_source_tag
5152 _maybe (
5253 http_archive ,
5354 name = "com_google_protobuf" ,
5455 urls = ["https://github.com/protocolbuffers/protobuf/archive/%s.zip" % _protobuf_version_in_link ],
55- strip_prefix = "protobuf-%s" % _protobuf_version ,
56- patch_cmds = [
57- "mkdir -p bazel/common" ,
58- "touch bazel/common/BUILD" ,
59- "touch bazel/BUILD" ,
60- "cat <<'EOF' > bazel/common/proto_info.bzl\n load(\" @rules_proto//proto:defs.bzl\" , _ProtoInfo = \" ProtoInfo\" )\n ProtoInfo = _ProtoInfo\n EOF" ,
61- "cat <<'EOF' > bazel/proto_library.bzl\n def proto_library(**kwargs):\n native.proto_library(**kwargs)\n EOF" ,
62- "cat <<'EOF' > bazel/java_proto_library.bzl\n def java_proto_library(**kwargs):\n native.java_proto_library(**kwargs)\n EOF" ,
63- ],
56+ strip_prefix = "protobuf-%s" % _protobuf_source_tag ,
6457 )
6558
6659 _grpc_version = PROPERTIES ["version.io_grpc" ]
You can’t perform that action at this time.
0 commit comments