From df6f996b01c6562a78fe94b3bd8490a4355d88c3 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 23:20:58 +0000 Subject: [PATCH] bazel_worker_api@0.0.4, bazel_worker_java@0.0.4 (#3231) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release: https://github.com/bazelbuild/bazel-worker-api/releases/tag/v0.0.4 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Xùdōng Yáng --- modules/bazel_worker_api/0.0.4/MODULE.bazel | 6 +++ .../patches/module_dot_bazel_version.patch | 11 +++++ modules/bazel_worker_api/0.0.4/presubmit.yml | 10 +++++ modules/bazel_worker_api/0.0.4/source.json | 9 ++++ modules/bazel_worker_api/metadata.json | 3 +- modules/bazel_worker_java/0.0.4/MODULE.bazel | 45 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++ modules/bazel_worker_java/0.0.4/presubmit.yml | 12 +++++ modules/bazel_worker_java/0.0.4/source.json | 9 ++++ modules/bazel_worker_java/metadata.json | 3 +- 10 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 modules/bazel_worker_api/0.0.4/MODULE.bazel create mode 100644 modules/bazel_worker_api/0.0.4/patches/module_dot_bazel_version.patch create mode 100644 modules/bazel_worker_api/0.0.4/presubmit.yml create mode 100644 modules/bazel_worker_api/0.0.4/source.json create mode 100644 modules/bazel_worker_java/0.0.4/MODULE.bazel create mode 100644 modules/bazel_worker_java/0.0.4/patches/module_dot_bazel_version.patch create mode 100644 modules/bazel_worker_java/0.0.4/presubmit.yml create mode 100644 modules/bazel_worker_java/0.0.4/source.json diff --git a/modules/bazel_worker_api/0.0.4/MODULE.bazel b/modules/bazel_worker_api/0.0.4/MODULE.bazel new file mode 100644 index 00000000000..85f4bea24f3 --- /dev/null +++ b/modules/bazel_worker_api/0.0.4/MODULE.bazel @@ -0,0 +1,6 @@ +module( + name = "bazel_worker_api", + version = "0.0.4", +) + +bazel_dep(name = "protobuf", version = "27.2", repo_name = "com_google_protobuf") diff --git a/modules/bazel_worker_api/0.0.4/patches/module_dot_bazel_version.patch b/modules/bazel_worker_api/0.0.4/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..8e273603677 --- /dev/null +++ b/modules/bazel_worker_api/0.0.4/patches/module_dot_bazel_version.patch @@ -0,0 +1,11 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,6 +1,6 @@ + module( + name = "bazel_worker_api", +- version = "0", ++ version = "0.0.4", + ) + + bazel_dep(name = "protobuf", version = "27.2", repo_name = "com_google_protobuf") diff --git a/modules/bazel_worker_api/0.0.4/presubmit.yml b/modules/bazel_worker_api/0.0.4/presubmit.yml new file mode 100644 index 00000000000..52c154b9e24 --- /dev/null +++ b/modules/bazel_worker_api/0.0.4/presubmit.yml @@ -0,0 +1,10 @@ +matrix: + platform: ["ubuntu2204", "macos", "macos_arm64", "windows"] + bazel: [7.x] +tasks: + run_tests: + name: build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@bazel_worker_api//...' diff --git a/modules/bazel_worker_api/0.0.4/source.json b/modules/bazel_worker_api/0.0.4/source.json new file mode 100644 index 00000000000..68431a3fd95 --- /dev/null +++ b/modules/bazel_worker_api/0.0.4/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ebMLzauMsNzhUjso/3mAZ0GXFfVUCopEa7zPOT5et5w=", + "strip_prefix": "bazel-worker-api-0.0.4/proto", + "url": "https://github.com/bazelbuild/bazel-worker-api/releases/download/v0.0.4/bazel-worker-api-v0.0.4.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-EcY6RElke2D7nNZEKJOBWtH+Hdtlcvp4iHDkMVWXvnM=" + }, + "patch_strip": 1 +} diff --git a/modules/bazel_worker_api/metadata.json b/modules/bazel_worker_api/metadata.json index b136963ff41..6ffd9aaea1f 100644 --- a/modules/bazel_worker_api/metadata.json +++ b/modules/bazel_worker_api/metadata.json @@ -10,7 +10,8 @@ "versions": [ "0.0.1", "0.0.2", - "0.0.3" + "0.0.3", + "0.0.4" ], "yanked_versions": {}, "repository": [ diff --git a/modules/bazel_worker_java/0.0.4/MODULE.bazel b/modules/bazel_worker_java/0.0.4/MODULE.bazel new file mode 100644 index 00000000000..c3e8e683ad7 --- /dev/null +++ b/modules/bazel_worker_java/0.0.4/MODULE.bazel @@ -0,0 +1,45 @@ +module( + name = "bazel_worker_java", + version = "0.0.4", +) + +bazel_dep(name = "bazel_worker_api", version = "0.0.1") +bazel_dep(name = "rules_jvm_external", version = "6.2") +bazel_dep(name = "protobuf", version = "27.2", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_java", version = "7.12.2") + +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") +maven.install( + artifacts = [ + "com.google.code.gson:gson:2.10.1", + "com.google.errorprone:error_prone_annotations:2.23.0", + "com.google.guava:guava:33.0.0-jre", + "com.google.protobuf:protobuf-java:4.27.2", + "com.google.protobuf:protobuf-java-util:4.27.2", + ], +) +maven.artifact( + artifact = "junit", + group = "junit", + testonly = True, + version = "4.13.2", +) +maven.artifact( + artifact = "mockito-core", + group = "org.mockito", + testonly = True, + version = "5.4.0", +) +maven.artifact( + artifact = "truth", + group = "com.google.truth", + testonly = True, + version = "1.4.0", +) +use_repo(maven, "maven") + +local_path_override( + module_name = "bazel_worker_api", + path = "../proto", +) + diff --git a/modules/bazel_worker_java/0.0.4/patches/module_dot_bazel_version.patch b/modules/bazel_worker_java/0.0.4/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..dccabbd4eb7 --- /dev/null +++ b/modules/bazel_worker_java/0.0.4/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "bazel_worker_java", +- version = "0", ++ version = "0.0.4", + ) + + bazel_dep(name = "bazel_worker_api", version = "0.0.1") + bazel_dep(name = "rules_jvm_external", version = "6.2") diff --git a/modules/bazel_worker_java/0.0.4/presubmit.yml b/modules/bazel_worker_java/0.0.4/presubmit.yml new file mode 100644 index 00000000000..56a08d8fa47 --- /dev/null +++ b/modules/bazel_worker_java/0.0.4/presubmit.yml @@ -0,0 +1,12 @@ +matrix: + platform: ["ubuntu2204", "macos", "macos_arm64", "windows"] + bazel: [7.x] +tasks: + run_tests: + name: run tests + platform: ${{ platform }} + bazel: ${{ bazel }} + test_flags: + - '--java_language_version=21' + test_targets: + - '@bazel_worker_java//...' diff --git a/modules/bazel_worker_java/0.0.4/source.json b/modules/bazel_worker_java/0.0.4/source.json new file mode 100644 index 00000000000..066f6e9dc2b --- /dev/null +++ b/modules/bazel_worker_java/0.0.4/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ebMLzauMsNzhUjso/3mAZ0GXFfVUCopEa7zPOT5et5w=", + "strip_prefix": "bazel-worker-api-0.0.4/java", + "url": "https://github.com/bazelbuild/bazel-worker-api/releases/download/v0.0.4/bazel-worker-api-v0.0.4.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-HnFwGW0m7MXsyELxKnaLvkH9A4bDvBrdKxLIIMTA5sg=" + }, + "patch_strip": 1 +} diff --git a/modules/bazel_worker_java/metadata.json b/modules/bazel_worker_java/metadata.json index f9842f5e6fc..43df1698b5f 100644 --- a/modules/bazel_worker_java/metadata.json +++ b/modules/bazel_worker_java/metadata.json @@ -10,7 +10,8 @@ "versions": [ "0.0.1", "0.0.2", - "0.0.3" + "0.0.3", + "0.0.4" ], "yanked_versions": {}, "repository": [