diff --git a/BUILD b/BUILD index 919c4531..da5b6bd1 100644 --- a/BUILD +++ b/BUILD @@ -1,5 +1,3 @@ -load("//tools/bzl:genrule2.bzl", "genrule2") - genrule( name = "github", srcs = [ diff --git a/Jenkinsfile b/Jenkinsfile index e814f414..d20b15c7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,2 +1 @@ -pluginPipeline(gjfVersion: '1.22.0', - extraGhRepos: ['gerrit-bsl-license']) +pluginPipeline(extraGhRepos: ['gerrit-bsl-license']) diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 00000000..54c90450 --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,59 @@ +module(name = "gerrit-github") + +bazel_dep(name = "rules_java", version = "9.3.0") +bazel_dep(name = "rules_jvm_external", version = "7.0") + +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") + +AXIS_VERSION = "1.4" + +GITHUB_API_VERSION = "1.316" + +BRIDGE_METHOD_VERSION = "1.29" + +maven.install( + name = "github-plugin_plugin_deps", + artifacts = [ + "com.infradna.tool:bridge-method-annotation:" + BRIDGE_METHOD_VERSION, + "com.infradna.tool:bridge-method-injector:" + BRIDGE_METHOD_VERSION, + "com.sun.mail:javax.mail:1.6.2", + "commons-discovery:commons-discovery:0.5", + "javax.activation:activation:1.1", + "org.apache.axis:axis:" + AXIS_VERSION, + "org.apache.axis:axis-jaxrpc:" + AXIS_VERSION, + "org.apache.velocity:velocity-engine-core:2.3", + "org.eclipse.mylyn.github:org.eclipse.egit.github.core:6.1.0.202203080745-r", + "org.kohsuke:github-api:" + GITHUB_API_VERSION, + ], + duplicate_version_warning = "error", + excluded_artifacts = [ + "com.google.code.findbugs:jsr305", + "com.google.errorprone:error_prone_annotations", + "com.google.guava:failureaccess", + "com.google.guava:guava", + "com.google.j2objc:j2objc-annotations", + "commons-codec:commons-codec", + "commons-io:commons-io", + "commons-logging:commons-logging", + "org.apache.commons:commons-lang3", + "javax.servlet:javax.servlet-api", + "org.apache.httpcomponents:httpclient", + "org.apache.httpcomponents:httpcore", + "org.checkerframework:checker-qual", + "org.ow2.asm:asm", + "org.ow2.asm:asm-commons", + "org.ow2.asm:asm-tree", + "org.slf4j:slf4j-api", + ], + fail_if_repin_required = True, + fail_on_missing_checksum = True, + fetch_sources = True, + lock_file = "//:github-plugin_plugin_deps.lock.json", + repositories = [ + "https://repo1.maven.org/maven2", + "https://repo.eclipse.org/content/repositories/egit-releases/", + "https://repo.jenkins-ci.org/releases/", + ], + version_conflict_policy = "pinned", +) +use_repo(maven, "github-plugin_plugin_deps") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock new file mode 100644 index 00000000..e1b9dc3d --- /dev/null +++ b/MODULE.bazel.lock @@ -0,0 +1,865 @@ +{ + "lockFileVersion": 26, + "registryFileHashes": { + "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", + "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", + "https://bcr.bazel.build/modules/abseil-cpp/20211102.0/MODULE.bazel": "70390338f7a5106231d20620712f7cccb659cd0e9d073d1991c038eb9fc57589", + "https://bcr.bazel.build/modules/abseil-cpp/20230125.1/MODULE.bazel": "89047429cb0207707b2dface14ba7f8df85273d484c2572755be4bab7ce9c3a0", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0.bcr.1/MODULE.bazel": "1c8cec495288dccd14fdae6e3f95f772c1c91857047a098fad772034264cc8cb", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0/MODULE.bazel": "d253ae36a8bd9ee3c5955384096ccb6baf16a1b1e93e858370da0a3b94f77c16", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", + "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/MODULE.bazel": "37bcdb4440fbb61df6a1c296ae01b327f19e9bb521f9b8e26ec854b6f97309ed", + "https://bcr.bazel.build/modules/abseil-cpp/20240116.2/MODULE.bazel": "73939767a4686cd9a520d16af5ab440071ed75cec1a876bf2fcfaf1f71987a16", + "https://bcr.bazel.build/modules/abseil-cpp/20250127.0/MODULE.bazel": "d1086e248cda6576862b4b3fe9ad76a214e08c189af5b42557a6e1888812c5d5", + "https://bcr.bazel.build/modules/abseil-cpp/20250127.1/MODULE.bazel": "c4a89e7ceb9bf1e25cf84a9f830ff6b817b72874088bf5141b314726e46a57c1", + "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", + "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/MODULE.bazel": "51f2312901470cdab0dbdf3b88c40cd21c62a7ed58a3de45b365ddc5b11bcab2", + "https://bcr.bazel.build/modules/abseil-cpp/20250814.1/source.json": "cea3901d7e299da7320700abbaafe57a65d039f10d0d7ea601c4a66938ea4b0c", + "https://bcr.bazel.build/modules/abseil-py/2.1.0/MODULE.bazel": "5ebe5bf853769c65707e5c28f216798f7a4b1042015e6a36e6d03094d94bec8a", + "https://bcr.bazel.build/modules/abseil-py/2.1.0/source.json": "0e8fc4f088ce07099c1cd6594c20c7ddbb48b4b3c0849b7d94ba94be88ff042b", + "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", + "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", + "https://bcr.bazel.build/modules/apple_support/1.21.0/MODULE.bazel": "ac1824ed5edf17dee2fdd4927ada30c9f8c3b520be1b5fd02a5da15bc10bff3e", + "https://bcr.bazel.build/modules/apple_support/1.21.1/MODULE.bazel": "5809fa3efab15d1f3c3c635af6974044bac8a4919c62238cce06acee8a8c11f1", + "https://bcr.bazel.build/modules/apple_support/1.24.2/MODULE.bazel": "0e62471818affb9f0b26f128831d5c40b074d32e6dda5a0d3852847215a41ca4", + "https://bcr.bazel.build/modules/apple_support/1.24.2/source.json": "2c22c9827093250406c5568da6c54e6fdf0ef06238def3d99c71b12feb057a8d", + "https://bcr.bazel.build/modules/bazel_features/1.1.0/MODULE.bazel": "cfd42ff3b815a5f39554d97182657f8c4b9719568eb7fded2b9135f084bf760b", + "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", + "https://bcr.bazel.build/modules/bazel_features/1.10.0/MODULE.bazel": "f75e8807570484a99be90abcd52b5e1f390362c258bcb73106f4544957a48101", + "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", + "https://bcr.bazel.build/modules/bazel_features/1.13.0/MODULE.bazel": "c14c33c7c3c730612bdbe14ebbb5e61936b6f11322ea95a6e91cd1ba962f94df", + "https://bcr.bazel.build/modules/bazel_features/1.15.0/MODULE.bazel": "d38ff6e517149dc509406aca0db3ad1efdd890a85e049585b7234d04238e2a4d", + "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", + "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", + "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", + "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", + "https://bcr.bazel.build/modules/bazel_features/1.23.0/MODULE.bazel": "fd1ac84bc4e97a5a0816b7fd7d4d4f6d837b0047cf4cbd81652d616af3a6591a", + "https://bcr.bazel.build/modules/bazel_features/1.25.0/MODULE.bazel": "e2e60a10a6da64bbf533f15ca652bf61a033e41c2ed734d79a9a08ba87f68c1a", + "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", + "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", + "https://bcr.bazel.build/modules/bazel_features/1.3.0/MODULE.bazel": "cdcafe83ec318cda34e02948e81d790aab8df7a929cec6f6969f13a489ccecd9", + "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", + "https://bcr.bazel.build/modules/bazel_features/1.33.0/MODULE.bazel": "8b8dc9d2a4c88609409c3191165bccec0e4cb044cd7a72ccbe826583303459f6", + "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", + "https://bcr.bazel.build/modules/bazel_features/1.42.1/MODULE.bazel": "275a59b5406ff18c01739860aa70ad7ccb3cfb474579411decca11c93b951080", + "https://bcr.bazel.build/modules/bazel_features/1.42.1/source.json": "fcd4396b2df85f64f2b3bb436ad870793ecf39180f1d796f913cc9276d355309", + "https://bcr.bazel.build/modules/bazel_features/1.9.0/MODULE.bazel": "885151d58d90d8d9c811eb75e3288c11f850e1d6b481a8c9f766adee4712358b", + "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", + "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d", + "https://bcr.bazel.build/modules/bazel_lib/3.0.0/source.json": "895f21909c6fba01d7c17914bb6c8e135982275a1b18cdaa4e62272217ef1751", + "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", + "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", + "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", + "https://bcr.bazel.build/modules/bazel_skylib/1.2.1/MODULE.bazel": "f35baf9da0efe45fa3da1696ae906eea3d615ad41e2e3def4aeb4e8bc0ef9a7a", + "https://bcr.bazel.build/modules/bazel_skylib/1.3.0/MODULE.bazel": "20228b92868bf5cfc41bda7afc8a8ba2a543201851de39d990ec957b513579c5", + "https://bcr.bazel.build/modules/bazel_skylib/1.4.1/MODULE.bazel": "a0dcb779424be33100dcae821e9e27e4f2901d9dfd5333efe5ac6a8d7ab75e1d", + "https://bcr.bazel.build/modules/bazel_skylib/1.4.2/MODULE.bazel": "3bd40978e7a1fac911d5989e6b09d8f64921865a45822d8b09e815eaa726a651", + "https://bcr.bazel.build/modules/bazel_skylib/1.5.0/MODULE.bazel": "32880f5e2945ce6a03d1fbd588e9198c0a959bb42297b2cfaf1685b7bc32e138", + "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.0/MODULE.bazel": "0db596f4563de7938de764cc8deeabec291f55e8ec15299718b93c4423e9796d", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.1/MODULE.bazel": "88ade7293becda963e0e3ea33e7d54d3425127e0a326e0d17da085a5f1f03ff6", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/MODULE.bazel": "69ad6927098316848b34a9142bcc975e018ba27f08c4ff403f50c1b6e646ca67", + "https://bcr.bazel.build/modules/bazel_skylib/1.8.2/source.json": "34a3c8bcf233b835eb74be9d628899bb32999d3e0eadef1947a0a562a2b16ffb", + "https://bcr.bazel.build/modules/bazel_worker_api/0.0.1/MODULE.bazel": "02a13b77321773b2042e70ee5e4c5e099c8ddee4cf2da9cd420442c36938d4bd", + "https://bcr.bazel.build/modules/bazel_worker_api/0.0.4/MODULE.bazel": "460aa12d01231a80cce03c548287b433b321d205b0028ae596728c35e5ee442e", + "https://bcr.bazel.build/modules/bazel_worker_api/0.0.8/MODULE.bazel": "396c1ef53835aafe3d42ce6619080531ee770648303731f16cfaa33fa056bf0c", + "https://bcr.bazel.build/modules/bazel_worker_api/0.0.8/source.json": "abaf8ac9d2ab2f47bda9af4c0c080ff7907378888e1f4bc62a0539dd13ba61e8", + "https://bcr.bazel.build/modules/bazel_worker_java/0.0.4/MODULE.bazel": "82494a01018bb7ef06d4a17ec4cd7a758721f10eb8b6c820a818e70d669500db", + "https://bcr.bazel.build/modules/bazel_worker_java/0.0.8/MODULE.bazel": "e76479eae70bd4e8f5f4c2dfc5d03ab971cfb18750246c7b3f3454c5c2ee6629", + "https://bcr.bazel.build/modules/bazel_worker_java/0.0.8/source.json": "9395c4679444bc47bf7e51a710366a4480aa371c6f6bed01868e2fabcf11acec", + "https://bcr.bazel.build/modules/buildozer/8.5.1/MODULE.bazel": "a35d9561b3fc5b18797c330793e99e3b834a473d5fbd3d7d7634aafc9bdb6f8f", + "https://bcr.bazel.build/modules/buildozer/8.5.1/source.json": "e3386e6ff4529f2442800dee47ad28d3e6487f36a1f75ae39ae56c70f0cd2fbd", + "https://bcr.bazel.build/modules/gazelle/0.32.0/MODULE.bazel": "b499f58a5d0d3537f3cf5b76d8ada18242f64ec474d8391247438bf04f58c7b8", + "https://bcr.bazel.build/modules/gazelle/0.33.0/MODULE.bazel": "a13a0f279b462b784fb8dd52a4074526c4a2afe70e114c7d09066097a46b3350", + "https://bcr.bazel.build/modules/gazelle/0.34.0/MODULE.bazel": "abdd8ce4d70978933209db92e436deb3a8b737859e9354fb5fd11fb5c2004c8a", + "https://bcr.bazel.build/modules/gazelle/0.36.0/MODULE.bazel": "e375d5d6e9a6ca59b0cb38b0540bc9a05b6aa926d322f2de268ad267a2ee74c0", + "https://bcr.bazel.build/modules/gazelle/0.40.0/MODULE.bazel": "42ba5378ebe845fca43989a53186ab436d956db498acde790685fe0e8f9c6146", + "https://bcr.bazel.build/modules/gazelle/0.47.0/MODULE.bazel": "b61bb007c4efad134aa30ee7f4a8e2a39b22aa5685f005edaa022fbd1de43ebc", + "https://bcr.bazel.build/modules/gazelle/0.47.0/source.json": "aeb2e5df14b7fb298625d75d08b9c65bdb0b56014c5eb89da9e5dd0572280ae6", + "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", + "https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4", + "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", + "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", + "https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel": "6de1edc1d26cafb0ea1a6ab3f4d4192d91a312fd2d360b63adaa213cd00b2108", + "https://bcr.bazel.build/modules/googletest/1.17.0/MODULE.bazel": "dbec758171594a705933a29fcf69293d2468c49ec1f2ebca65c36f504d72df46", + "https://bcr.bazel.build/modules/googletest/1.17.0/source.json": "38e4454b25fc30f15439c0378e57909ab1fd0a443158aa35aec685da727cd713", + "https://bcr.bazel.build/modules/jsoncpp/1.9.5/MODULE.bazel": "31271aedc59e815656f5736f282bb7509a97c7ecb43e927ac1a37966e0578075", + "https://bcr.bazel.build/modules/jsoncpp/1.9.6/MODULE.bazel": "2f8d20d3b7d54143213c4dfc3d98225c42de7d666011528dc8fe91591e2e17b0", + "https://bcr.bazel.build/modules/jsoncpp/1.9.6/source.json": "a04756d367a2126c3541682864ecec52f92cdee80a35735a3cb249ce015ca000", + "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", + "https://bcr.bazel.build/modules/nlohmann_json/3.6.1/MODULE.bazel": "6f7b417dcc794d9add9e556673ad25cb3ba835224290f4f848f8e2db1e1fca74", + "https://bcr.bazel.build/modules/nlohmann_json/3.6.1/source.json": "f448c6e8963fdfa7eb831457df83ad63d3d6355018f6574fb017e8169deb43a9", + "https://bcr.bazel.build/modules/package_metadata/0.0.2/MODULE.bazel": "fb8d25550742674d63d7b250063d4580ca530499f045d70748b1b142081ebb92", + "https://bcr.bazel.build/modules/package_metadata/0.0.3/MODULE.bazel": "77890552ecea9e284b5424c9de827a58099348763a4359e975c359a83d4faa83", + "https://bcr.bazel.build/modules/package_metadata/0.0.5/MODULE.bazel": "ef4f9439e3270fdd6b9fd4dbc3d2f29d13888e44c529a1b243f7a31dfbc2e8e4", + "https://bcr.bazel.build/modules/package_metadata/0.0.7/MODULE.bazel": "7adb03933fc8401f495800cf4eafcff0edc6da0ff55c7db223ef69d19f689486", + "https://bcr.bazel.build/modules/package_metadata/0.0.7/source.json": "50639625e937b56115012674c797cca7a05a96b4878c87d803c13dc2b31de8a0", + "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", + "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", + "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", + "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", + "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", + "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", + "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", + "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", + "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", + "https://bcr.bazel.build/modules/platforms/1.0.0/source.json": "f4ff1fd412e0246fd38c82328eb209130ead81d62dcd5a9e40910f867f733d96", + "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel": "a5a29bb89544f9b97edce05642fac225a808b5b7be74038ea3640fae2f8e66a7", + "https://bcr.bazel.build/modules/protobuf/23.1/MODULE.bazel": "88b393b3eb4101d18129e5db51847cd40a5517a53e81216144a8c32dfeeca52a", + "https://bcr.bazel.build/modules/protobuf/24.4/MODULE.bazel": "7bc7ce5f2abf36b3b7b7c8218d3acdebb9426aeb35c2257c96445756f970eb12", + "https://bcr.bazel.build/modules/protobuf/27.0/MODULE.bazel": "7873b60be88844a0a1d8f80b9d5d20cfbd8495a689b8763e76c6372998d3f64c", + "https://bcr.bazel.build/modules/protobuf/27.1/MODULE.bazel": "703a7b614728bb06647f965264967a8ef1c39e09e8f167b3ca0bb1fd80449c0d", + "https://bcr.bazel.build/modules/protobuf/27.2/MODULE.bazel": "32450b50673882e4c8c3d10a83f3bc82161b213ed2f80d17e38bece8f165c295", + "https://bcr.bazel.build/modules/protobuf/29.0-rc2.bcr.1/MODULE.bazel": "52f4126f63a2f0bbf36b99c2a87648f08467a4eaf92ba726bc7d6a500bbf770c", + "https://bcr.bazel.build/modules/protobuf/29.0-rc2/MODULE.bazel": "6241d35983510143049943fc0d57937937122baf1b287862f9dc8590fc4c37df", + "https://bcr.bazel.build/modules/protobuf/29.0-rc3/MODULE.bazel": "33c2dfa286578573afc55a7acaea3cada4122b9631007c594bf0729f41c8de92", + "https://bcr.bazel.build/modules/protobuf/29.0/MODULE.bazel": "319dc8bf4c679ff87e71b1ccfb5a6e90a6dbc4693501d471f48662ac46d04e4e", + "https://bcr.bazel.build/modules/protobuf/29.1/MODULE.bazel": "557c3457560ff49e122ed76c0bc3397a64af9574691cb8201b4e46d4ab2ecb95", + "https://bcr.bazel.build/modules/protobuf/29.3/MODULE.bazel": "77480eea5fb5541903e49683f24dc3e09f4a79e0eea247414887bb9fc0066e94", + "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", + "https://bcr.bazel.build/modules/protobuf/3.19.2/MODULE.bazel": "532ffe5f2186b69fdde039efe6df13ba726ff338c6bc82275ad433013fa10573", + "https://bcr.bazel.build/modules/protobuf/3.19.6/MODULE.bazel": "9233edc5e1f2ee276a60de3eaa47ac4132302ef9643238f23128fea53ea12858", + "https://bcr.bazel.build/modules/protobuf/31.1/MODULE.bazel": "379a389bb330b7b8c1cdf331cc90bf3e13de5614799b3b52cdb7c6f389f6b38e", + "https://bcr.bazel.build/modules/protobuf/32.1/MODULE.bazel": "89cd2866a9cb07fee9ff74c41ceace11554f32e0d849de4e23ac55515cfada4d", + "https://bcr.bazel.build/modules/protobuf/33.4/MODULE.bazel": "114775b816b38b6d0ca620450d6b02550c60ceedfdc8d9a229833b34a223dc42", + "https://bcr.bazel.build/modules/protobuf/33.4/source.json": "555f8686b4c7d6b5ba731fbea13bf656b4bfd9a7ff629c1d9d3f6e1d6155de79", + "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", + "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/MODULE.bazel": "e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34", + "https://bcr.bazel.build/modules/pybind11_bazel/2.12.0/source.json": "6900fdc8a9e95866b8c0d4ad4aba4d4236317b5c1cd04c502df3f0d33afed680", + "https://bcr.bazel.build/modules/re2/2023-09-01/MODULE.bazel": "cb3d511531b16cfc78a225a9e2136007a48cf8a677e4264baeab57fe78a80206", + "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/MODULE.bazel": "b4963dda9b31080be1905ef085ecd7dd6cd47c05c79b9cdf83ade83ab2ab271a", + "https://bcr.bazel.build/modules/re2/2024-07-02.bcr.1/source.json": "2ff292be6ef3340325ce8a045ecc326e92cbfab47c7cbab4bd85d28971b97ac4", + "https://bcr.bazel.build/modules/re2/2024-07-02/MODULE.bazel": "0eadc4395959969297cbcf31a249ff457f2f1d456228c67719480205aa306daa", + "https://bcr.bazel.build/modules/rules_android/0.1.1/MODULE.bazel": "48809ab0091b07ad0182defb787c4c5328bd3a278938415c00a7b69b50c4d3a8", + "https://bcr.bazel.build/modules/rules_android/0.6.4/MODULE.bazel": "b4cde12d506dd65d82b2be39761f49f5797303343a3d5b4ee191c0cdf9ef387c", + "https://bcr.bazel.build/modules/rules_android/0.7.1/MODULE.bazel": "a806fc382a774252f228a40e3b11b9fcc6276f8778c7fb33e9f72937c6258363", + "https://bcr.bazel.build/modules/rules_android/0.7.1/source.json": "151440aed3f0f73a00d4ed5cec5d31f63a6fef9b95d8fab1eb1810150fa525f2", + "https://bcr.bazel.build/modules/rules_apple/3.16.0/MODULE.bazel": "0d1caf0b8375942ce98ea944be754a18874041e4e0459401d925577624d3a54a", + "https://bcr.bazel.build/modules/rules_apple/4.1.0/MODULE.bazel": "76e10fd4a48038d3fc7c5dc6e63b7063bbf5304a2e3bd42edda6ec660eebea68", + "https://bcr.bazel.build/modules/rules_apple/4.1.0/source.json": "8ee81e1708756f81b343a5eb2b2f0b953f1d25c4ab3d4a68dc02754872e80715", + "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", + "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", + "https://bcr.bazel.build/modules/rules_cc/0.0.13/MODULE.bazel": "0e8529ed7b323dad0775ff924d2ae5af7640b23553dfcd4d34344c7e7a867191", + "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", + "https://bcr.bazel.build/modules/rules_cc/0.0.16/MODULE.bazel": "7661303b8fc1b4d7f532e54e9d6565771fea666fbdf839e0a86affcd02defe87", + "https://bcr.bazel.build/modules/rules_cc/0.0.17/MODULE.bazel": "2ae1d8f4238ec67d7185d8861cb0a2cdf4bc608697c331b95bf990e69b62e64a", + "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", + "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", + "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", + "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", + "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", + "https://bcr.bazel.build/modules/rules_cc/0.1.2/MODULE.bazel": "557ddc3a96858ec0d465a87c0a931054d7dcfd6583af2c7ed3baf494407fd8d0", + "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", + "https://bcr.bazel.build/modules/rules_cc/0.2.0/MODULE.bazel": "b5c17f90458caae90d2ccd114c81970062946f49f355610ed89bebf954f5783c", + "https://bcr.bazel.build/modules/rules_cc/0.2.13/MODULE.bazel": "eecdd666eda6be16a8d9dc15e44b5c75133405e820f620a234acc4b1fdc5aa37", + "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", + "https://bcr.bazel.build/modules/rules_cc/0.2.17/MODULE.bazel": "1849602c86cb60da8613d2de887f9566a6d354a6df6d7009f9d04a14402f9a84", + "https://bcr.bazel.build/modules/rules_cc/0.2.17/source.json": "3832f45d145354049137c0090df04629d9c2b5493dc5c2bf46f1834040133a07", + "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", + "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", + "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", + "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel": "55861d8e8bb0e62cbd2896f60ff303f62ffcb0eddb74ecb0e5c0cbe36fc292c8", + "https://bcr.bazel.build/modules/rules_go/0.42.0/MODULE.bazel": "8cfa875b9aa8c6fce2b2e5925e73c1388173ea3c32a0db4d2b4804b453c14270", + "https://bcr.bazel.build/modules/rules_go/0.46.0/MODULE.bazel": "3477df8bdcc49e698b9d25f734c4f3a9f5931ff34ee48a2c662be168f5f2d3fd", + "https://bcr.bazel.build/modules/rules_go/0.50.1/MODULE.bazel": "b91a308dc5782bb0a8021ad4330c81fea5bda77f96b9e4c117b9b9c8f6665ee0", + "https://bcr.bazel.build/modules/rules_go/0.51.0-rc2/MODULE.bazel": "edfc3a9cea7bedb0eaaff37b0d7817c1a4bf72b3c615580b0ffcee6c52690fd4", + "https://bcr.bazel.build/modules/rules_go/0.53.0/MODULE.bazel": "a4ed760d3ac0dbc0d7b967631a9a3fd9100d28f7d9fcf214b4df87d4bfff5f9a", + "https://bcr.bazel.build/modules/rules_go/0.59.0/MODULE.bazel": "b7e43e7414a3139a7547d1b4909b29085fbe5182b6c58cbe1ed4c6272815aeae", + "https://bcr.bazel.build/modules/rules_go/0.59.0/source.json": "1df17bb7865cfc029492c30163cee891d0dd8658ea0d5bfdf252c4b6db5c1ef6", + "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", + "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", + "https://bcr.bazel.build/modules/rules_java/6.3.0/MODULE.bazel": "a97c7678c19f236a956ad260d59c86e10a463badb7eb2eda787490f4c969b963", + "https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31", + "https://bcr.bazel.build/modules/rules_java/7.1.0/MODULE.bazel": "30d9135a2b6561c761bd67bd4990da591e6bdc128790ce3e7afd6a3558b2fb64", + "https://bcr.bazel.build/modules/rules_java/7.10.0/MODULE.bazel": "530c3beb3067e870561739f1144329a21c851ff771cd752a49e06e3dc9c2e71a", + "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", + "https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab", + "https://bcr.bazel.build/modules/rules_java/7.4.0/MODULE.bazel": "a592852f8a3dd539e82ee6542013bf2cadfc4c6946be8941e189d224500a8934", + "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", + "https://bcr.bazel.build/modules/rules_java/8.3.2/MODULE.bazel": "7336d5511ad5af0b8615fdc7477535a2e4e723a357b6713af439fe8cf0195017", + "https://bcr.bazel.build/modules/rules_java/8.5.1/MODULE.bazel": "d8a9e38cc5228881f7055a6079f6f7821a073df3744d441978e7a43e20226939", + "https://bcr.bazel.build/modules/rules_java/8.6.0/MODULE.bazel": "9c064c434606d75a086f15ade5edb514308cccd1544c2b2a89bbac4310e41c71", + "https://bcr.bazel.build/modules/rules_java/8.6.1/MODULE.bazel": "f4808e2ab5b0197f094cabce9f4b006a27766beb6a9975931da07099560ca9c2", + "https://bcr.bazel.build/modules/rules_java/8.6.3/MODULE.bazel": "e90505b7a931d194245ffcfb6ff4ca8ef9d46b4e830d12e64817752e0198e2ed", + "https://bcr.bazel.build/modules/rules_java/8.9.0/MODULE.bazel": "e17c876cb53dcd817b7b7f0d2985b710610169729e8c371b2221cacdcd3dce4a", + "https://bcr.bazel.build/modules/rules_java/9.1.0/MODULE.bazel": "ee63f27e36a3fada80342869361182f120a9819c74320e8e65b1e04ba0cd7a9d", + "https://bcr.bazel.build/modules/rules_java/9.3.0/MODULE.bazel": "f657c72d65ac449caae9abf2e68e66c0d36f9416848c4c4903d0b3234229e7f2", + "https://bcr.bazel.build/modules/rules_java/9.3.0/source.json": "59ae7e662c3c7042b88bbb42ad12483523e234c65ebe4c51611baa43e85cb248", + "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7", + "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909", + "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", + "https://bcr.bazel.build/modules/rules_jvm_external/6.2/MODULE.bazel": "36a6e52487a855f33cb960724eb56547fa87e2c98a0474c3acad94339d7f8e99", + "https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel": "c998e060b85f71e00de5ec552019347c8bca255062c990ac02d051bb80a38df0", + "https://bcr.bazel.build/modules/rules_jvm_external/6.6/MODULE.bazel": "153042249c7060536dc95b6bb9f9bb8063b8a0b0cb7acdb381bddbc2374aed55", + "https://bcr.bazel.build/modules/rules_jvm_external/6.7/MODULE.bazel": "e717beabc4d091ecb2c803c2d341b88590e9116b8bf7947915eeb33aab4f96dd", + "https://bcr.bazel.build/modules/rules_jvm_external/6.9/MODULE.bazel": "07c5db05527db7744a54fcffd653e1550d40e0540207a7f7e6d0a4de5bef8274", + "https://bcr.bazel.build/modules/rules_jvm_external/7.0/MODULE.bazel": "421482bdbcf05709f933c96b867a599deb517f2804ceb3e74511880610cfbf71", + "https://bcr.bazel.build/modules/rules_jvm_external/7.0/source.json": "714cd003eadf5be5c83268311fe8e951db39f802babeaddc536b3560dc8f6faf", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.5/MODULE.bazel": "043a16a572f610558ec2030db3ff0c9938574e7dd9f58bded1bb07c0192ef025", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/MODULE.bazel": "d269a01a18ee74d0335450b10f62c9ed81f2321d7958a2934e44272fe82dcef3", + "https://bcr.bazel.build/modules/rules_kotlin/2.2.2/MODULE.bazel": "00d39c5e0fa78cd86193946265bb849e7878c24e44260f9525108428852b315c", + "https://bcr.bazel.build/modules/rules_kotlin/2.2.2/source.json": "7a32c2259c79ae0c9a036121f120de825e3ba5f0f3a209ffbbdccf4dc62489b9", + "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", + "https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d", + "https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c", + "https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb", + "https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc", + "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", + "https://bcr.bazel.build/modules/rules_pkg/1.0.1/source.json": "bd82e5d7b9ce2d31e380dd9f50c111d678c3bdaca190cb76b0e1c71b05e1ba8a", + "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", + "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "e8dff86b0971688790ae75528fe1813f71809b5afd57facb44dad9e8eca631b7", + "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/MODULE.bazel": "1e5b502e2e1a9e825eef74476a5a1ee524a92297085015a052510b09a1a09483", + "https://bcr.bazel.build/modules/rules_proto/6.0.0/MODULE.bazel": "b531d7f09f58dce456cd61b4579ce8c86b38544da75184eadaf0a7cb7966453f", + "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", + "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", + "https://bcr.bazel.build/modules/rules_proto/7.1.0/MODULE.bazel": "002d62d9108f75bb807cd56245d45648f38275cb3a99dcd45dfb864c5d74cb96", + "https://bcr.bazel.build/modules/rules_proto/7.1.0/source.json": "39f89066c12c24097854e8f57ab8558929f9c8d474d34b2c00ac04630ad8940e", + "https://bcr.bazel.build/modules/rules_python/0.10.2/MODULE.bazel": "cc82bc96f2997baa545ab3ce73f196d040ffb8756fd2d66125a530031cd90e5f", + "https://bcr.bazel.build/modules/rules_python/0.23.1/MODULE.bazel": "49ffccf0511cb8414de28321f5fcf2a31312b47c40cc21577144b7447f2bf300", + "https://bcr.bazel.build/modules/rules_python/0.25.0/MODULE.bazel": "72f1506841c920a1afec76975b35312410eea3aa7b63267436bfb1dd91d2d382", + "https://bcr.bazel.build/modules/rules_python/0.28.0/MODULE.bazel": "cba2573d870babc976664a912539b320cbaa7114cd3e8f053c720171cde331ed", + "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel": "93a43dc47ee570e6ec9f5779b2e64c1476a6ce921c48cc9a1678a91dd5f8fd58", + "https://bcr.bazel.build/modules/rules_python/0.33.2/MODULE.bazel": "3e036c4ad8d804a4dad897d333d8dce200d943df4827cb849840055be8d2e937", + "https://bcr.bazel.build/modules/rules_python/0.37.1/MODULE.bazel": "3faeb2d9fa0a81f8980643ee33f212308f4d93eea4b9ce6f36d0b742e71e9500", + "https://bcr.bazel.build/modules/rules_python/0.37.2/MODULE.bazel": "b5ffde91410745750b6c13be1c5dc4555ef5bc50562af4a89fd77807fdde626a", + "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel": "9208ee05fd48bf09ac60ed269791cf17fb343db56c8226a720fbb1cdf467166c", + "https://bcr.bazel.build/modules/rules_python/1.0.0/MODULE.bazel": "898a3d999c22caa585eb062b600f88654bf92efb204fa346fb55f6f8edffca43", + "https://bcr.bazel.build/modules/rules_python/1.3.0/MODULE.bazel": "8361d57eafb67c09b75bf4bbe6be360e1b8f4f18118ab48037f2bd50aa2ccb13", + "https://bcr.bazel.build/modules/rules_python/1.4.1/MODULE.bazel": "8991ad45bdc25018301d6b7e1d3626afc3c8af8aaf4bc04f23d0b99c938b73a6", + "https://bcr.bazel.build/modules/rules_python/1.6.0/MODULE.bazel": "7e04ad8f8d5bea40451cf80b1bd8262552aa73f841415d20db96b7241bd027d8", + "https://bcr.bazel.build/modules/rules_python/1.7.0/MODULE.bazel": "d01f995ecd137abf30238ad9ce97f8fc3ac57289c8b24bd0bf53324d937a14f8", + "https://bcr.bazel.build/modules/rules_python/1.7.0/source.json": "028a084b65dcf8f4dc4f82f8778dbe65df133f234b316828a82e060d81bdce32", + "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/MODULE.bazel": "d44fec647d0aeb67b9f3b980cf68ba634976f3ae7ccd6c07d790b59b87a4f251", + "https://bcr.bazel.build/modules/rules_robolectric/4.14.1.2/source.json": "37c10335f2361c337c5c1f34ed36d2da70534c23088062b33a8bdaab68aa9dea", + "https://bcr.bazel.build/modules/rules_shell/0.1.2/MODULE.bazel": "66e4ca3ce084b04af0b9ff05ff14cab4e5df7503973818bb91cbc6cda08d32fc", + "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", + "https://bcr.bazel.build/modules/rules_shell/0.3.0/MODULE.bazel": "de4402cd12f4cc8fda2354fce179fdb068c0b9ca1ec2d2b17b3e21b24c1a937b", + "https://bcr.bazel.build/modules/rules_shell/0.4.1/MODULE.bazel": "00e501db01bbf4e3e1dd1595959092c2fadf2087b2852d3f553b5370f5633592", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/source.json": "20ec05cd5e592055e214b2da8ccb283c7f2a421ea0dc2acbf1aa792e11c03d0c", + "https://bcr.bazel.build/modules/rules_swift/1.16.0/MODULE.bazel": "4a09f199545a60d09895e8281362b1ff3bb08bbde69c6fc87aff5b92fcc916ca", + "https://bcr.bazel.build/modules/rules_swift/2.1.1/MODULE.bazel": "494900a80f944fc7aa61500c2073d9729dff0b764f0e89b824eb746959bc1046", + "https://bcr.bazel.build/modules/rules_swift/2.4.0/MODULE.bazel": "1639617eb1ede28d774d967a738b4a68b0accb40650beadb57c21846beab5efd", + "https://bcr.bazel.build/modules/rules_swift/3.1.2/MODULE.bazel": "72c8f5cf9d26427cee6c76c8e3853eb46ce6b0412a081b2b6db6e8ad56267400", + "https://bcr.bazel.build/modules/rules_swift/3.1.2/source.json": "e85761f3098a6faf40b8187695e3de6d97944e98abd0d8ce579cb2daf6319a66", + "https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8", + "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", + "https://bcr.bazel.build/modules/stardoc/0.6.2/MODULE.bazel": "7060193196395f5dd668eda046ccbeacebfd98efc77fed418dbe2b82ffaa39fd", + "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", + "https://bcr.bazel.build/modules/stardoc/0.7.2/MODULE.bazel": "fc152419aa2ea0f51c29583fab1e8c99ddefd5b3778421845606ee628629e0e5", + "https://bcr.bazel.build/modules/stardoc/0.7.2/source.json": "58b029e5e901d6802967754adf0a9056747e8176f017cfe3607c0851f4d42216", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.1/MODULE.bazel": "5e463fbfba7b1701d957555ed45097d7f984211330106ccd1352c6e0af0dcf91", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.2/MODULE.bazel": "75aab2373a4bbe2a1260b9bf2a1ebbdbf872d3bd36f80bff058dccd82e89422f", + "https://bcr.bazel.build/modules/swift_argument_parser/1.3.1.2/source.json": "5fba48bbe0ba48761f9e9f75f92876cafb5d07c0ce059cc7a8027416de94a05b", + "https://bcr.bazel.build/modules/toml.bzl/0.3.0/MODULE.bazel": "5016e5dd1ad2200e119a4b28b2b3935e276c4b480f2fe3e952bea7eeba88f578", + "https://bcr.bazel.build/modules/toml.bzl/0.3.0/source.json": "0cf7c878c419b37ddb55f3dd93dd7c0c409bd7c4efacb3da504e0748780b2fa9", + "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", + "https://bcr.bazel.build/modules/upb/0.0.0-20230516-61a97ef/MODULE.bazel": "c0df5e35ad55e264160417fd0875932ee3c9dda63d9fccace35ac62f45e1b6f9", + "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", + "https://bcr.bazel.build/modules/zlib/1.2.12/MODULE.bazel": "3b1a8834ada2a883674be8cbd36ede1b6ec481477ada359cd2d3ddc562340b27", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/source.json": "22bc55c47af97246cfc093d0acf683a7869377de362b5d1c552c2c2e16b7a806", + "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" + }, + "selectedYankedVersions": {}, + "moduleExtensions": { + "@@pybind11_bazel+//:internal_configure.bzl%internal_configure_extension": { + "general": { + "bzlTransitiveDigest": "b+RP7Sgl8KN0VHamrgTqzGLuYPcQ/Mo4ptNkkHUIIlA=", + "usagesDigest": "D1r3lfzMuUBFxgG8V6o0bQTLMk3GkaGOaPzw53wrwyw=", + "recordedInputs": [ + "REPO_MAPPING:pybind11_bazel+,bazel_tools bazel_tools", + "FILE:@@pybind11_bazel+//MODULE.bazel e6f4c20442eaa7c90d7190d8dc539d0ab422f95c65a57cc59562170c58ae3d34" + ], + "generatedRepoSpecs": { + "pybind11": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "build_file": "@@pybind11_bazel+//:pybind11-BUILD.bazel", + "strip_prefix": "pybind11-2.12.0", + "urls": [ + "https://github.com/pybind/pybind11/archive/v2.12.0.zip" + ] + } + } + } + } + }, + "@@rules_android+//bzlmod_extensions:apksig.bzl%apksig_extension": { + "general": { + "bzlTransitiveDigest": "IiT2UgJGnHaKiyP2A1yh3U/QWN4W9g/Byolrm78hC/s=", + "usagesDigest": "zr/niBQ/s2fHozWAsg4vI70wAxcuFjG+QtM15qGkq9o=", + "recordedInputs": [ + "REPO_MAPPING:rules_android+,bazel_tools bazel_tools" + ], + "generatedRepoSpecs": { + "apksig": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://android.googlesource.com/platform/tools/apksig/+archive/24e3075e68ebe17c0b529bb24bfda819db5e2f3b.tar.gz", + "build_file": "@@rules_android+//bzlmod_extensions:apksig.BUILD" + } + } + } + } + }, + "@@rules_android+//bzlmod_extensions:com_android_dex.bzl%com_android_dex_extension": { + "general": { + "bzlTransitiveDigest": "toD4gOZwGNfBEM+xec6eRi3BM2Z9EZ4oQrORZQH3sNY=", + "usagesDigest": "c1Y/KGGjUYCyd8zNIVTUh1bynVXRFz6xGKaSCBpQANM=", + "recordedInputs": [ + "REPO_MAPPING:rules_android+,bazel_tools bazel_tools" + ], + "generatedRepoSpecs": { + "com_android_dex": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://android.googlesource.com/platform/dalvik/+archive/5a81c499a569731e2395f7c8d13c0e0d4e17a2b6.tar.gz", + "build_file": "@@rules_android+//bzlmod_extensions:com_android_dex.BUILD" + } + } + } + } + }, + "@@rules_android+//rules/android_sdk_repository:rule.bzl%android_sdk_repository_extension": { + "general": { + "bzlTransitiveDigest": "+rMrzIrv7sImYmkbXJYv+gFpTJQ79X3MpwwMLI2A+oA=", + "usagesDigest": "iEGI2aNDMkHt9LXCdViLNUUOslpiVj2DrevWWXZEFnU=", + "recordedInputs": [], + "generatedRepoSpecs": { + "androidsdk": { + "repoRuleId": "@@rules_android+//rules/android_sdk_repository:rule.bzl%_android_sdk_repository", + "attributes": {} + } + } + } + }, + "@@rules_python+//python/extensions:config.bzl%config": { + "general": { + "bzlTransitiveDigest": "iibnRYgg8LpcfmH7EAnVwYePC3jsVaJ6Id8XxUjSZps=", + "usagesDigest": "ZVSXMAGpD+xzVNPuvF1IoLBkty7TROO0+akMapt1pAg=", + "recordedInputs": [ + "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_python+,pypi__build rules_python++config+pypi__build", + "REPO_MAPPING:rules_python+,pypi__click rules_python++config+pypi__click", + "REPO_MAPPING:rules_python+,pypi__colorama rules_python++config+pypi__colorama", + "REPO_MAPPING:rules_python+,pypi__importlib_metadata rules_python++config+pypi__importlib_metadata", + "REPO_MAPPING:rules_python+,pypi__installer rules_python++config+pypi__installer", + "REPO_MAPPING:rules_python+,pypi__more_itertools rules_python++config+pypi__more_itertools", + "REPO_MAPPING:rules_python+,pypi__packaging rules_python++config+pypi__packaging", + "REPO_MAPPING:rules_python+,pypi__pep517 rules_python++config+pypi__pep517", + "REPO_MAPPING:rules_python+,pypi__pip rules_python++config+pypi__pip", + "REPO_MAPPING:rules_python+,pypi__pip_tools rules_python++config+pypi__pip_tools", + "REPO_MAPPING:rules_python+,pypi__pyproject_hooks rules_python++config+pypi__pyproject_hooks", + "REPO_MAPPING:rules_python+,pypi__setuptools rules_python++config+pypi__setuptools", + "REPO_MAPPING:rules_python+,pypi__tomli rules_python++config+pypi__tomli", + "REPO_MAPPING:rules_python+,pypi__wheel rules_python++config+pypi__wheel", + "REPO_MAPPING:rules_python+,pypi__zipp rules_python++config+pypi__zipp" + ], + "generatedRepoSpecs": { + "rules_python_internal": { + "repoRuleId": "@@rules_python+//python/private:internal_config_repo.bzl%internal_config_repo", + "attributes": { + "transition_setting_generators": {}, + "transition_settings": [] + } + }, + "pypi__build": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/e2/03/f3c8ba0a6b6e30d7d18c40faab90807c9bb5e9a1e3b2fe2008af624a9c97/build-1.2.1-py3-none-any.whl", + "sha256": "75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__click": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl", + "sha256": "ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__colorama": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", + "sha256": "4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__importlib_metadata": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/2d/0a/679461c511447ffaf176567d5c496d1de27cbe34a87df6677d7171b2fbd4/importlib_metadata-7.1.0-py3-none-any.whl", + "sha256": "30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__installer": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/e5/ca/1172b6638d52f2d6caa2dd262ec4c811ba59eee96d54a7701930726bce18/installer-0.7.0-py3-none-any.whl", + "sha256": "05d1933f0a5ba7d8d6296bb6d5018e7c94fa473ceb10cf198a92ccea19c27b53", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__more_itertools": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/50/e2/8e10e465ee3987bb7c9ab69efb91d867d93959095f4807db102d07995d94/more_itertools-10.2.0-py3-none-any.whl", + "sha256": "686b06abe565edfab151cb8fd385a05651e1fdf8f0a14191e4439283421f8684", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__packaging": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/49/df/1fceb2f8900f8639e278b056416d49134fb8d84c5942ffaa01ad34782422/packaging-24.0-py3-none-any.whl", + "sha256": "2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pep517": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/25/6e/ca4a5434eb0e502210f591b97537d322546e4833dcb4d470a48c375c5540/pep517-0.13.1-py3-none-any.whl", + "sha256": "31b206f67165b3536dd577c5c3f1518e8fbaf38cbc57efff8369a392feff1721", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pip": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl", + "sha256": "ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pip_tools": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/0d/dc/38f4ce065e92c66f058ea7a368a9c5de4e702272b479c0992059f7693941/pip_tools-7.4.1-py3-none-any.whl", + "sha256": "4c690e5fbae2f21e87843e89c26191f0d9454f362d8acdbd695716493ec8b3a9", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__pyproject_hooks": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/ae/f3/431b9d5fe7d14af7a32340792ef43b8a714e7726f1d7b69cc4e8e7a3f1d7/pyproject_hooks-1.1.0-py3-none-any.whl", + "sha256": "7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__setuptools": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/90/99/158ad0609729111163fc1f674a5a42f2605371a4cf036d0441070e2f7455/setuptools-78.1.1-py3-none-any.whl", + "sha256": "c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__tomli": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl", + "sha256": "939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__wheel": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/7d/cd/d7460c9a869b16c3dd4e1e403cce337df165368c71d6af229a74699622ce/wheel-0.43.0-py3-none-any.whl", + "sha256": "55c570405f142630c6b9f72fe09d9b67cf1477fcf543ae5b8dcb1f5b7377da81", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + }, + "pypi__zipp": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "url": "https://files.pythonhosted.org/packages/da/55/a03fd7240714916507e1fcf7ae355bd9d9ed2e6db492595f1a67f61681be/zipp-3.18.2-py3-none-any.whl", + "sha256": "dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e", + "type": "zip", + "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" + } + } + } + } + }, + "@@rules_python+//python/uv:uv.bzl%uv": { + "general": { + "bzlTransitiveDigest": "ijW9KS7qsIY+yBVvJ+Nr1mzwQox09j13DnE3iIwaeTM=", + "usagesDigest": "H8dQoNZcoqP+Mu0tHZTi4KHATzvNkM5ePuEqoQdklIU=", + "recordedInputs": [ + "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_python+,platforms platforms" + ], + "generatedRepoSpecs": { + "uv": { + "repoRuleId": "@@rules_python+//python/uv/private:uv_toolchains_repo.bzl%uv_toolchains_repo", + "attributes": { + "toolchain_type": "'@@rules_python+//python/uv:uv_toolchain_type'", + "toolchain_names": [ + "none" + ], + "toolchain_implementations": { + "none": "'@@rules_python+//python:none'" + }, + "toolchain_compatible_with": { + "none": [ + "@platforms//:incompatible" + ] + }, + "toolchain_target_settings": {} + } + } + } + } + } + }, + "facts": { + "@@rules_go+//go:extensions.bzl%go_sdk": { + "1.22.4": { + "aix_ppc64": [ + "go1.22.4.aix-ppc64.tar.gz", + "b9647fa9fc83a0cc5d4f092a19eaeaecf45f063a5aa7d4962fde65aeb7ae6ce1" + ], + "darwin_amd64": [ + "go1.22.4.darwin-amd64.tar.gz", + "c95967f50aa4ace34af0c236cbdb49a9a3e80ee2ad09d85775cb4462a5c19ed3" + ], + "darwin_arm64": [ + "go1.22.4.darwin-arm64.tar.gz", + "242b78dc4c8f3d5435d28a0d2cec9b4c1aa999b601fb8aa59fb4e5a1364bf827" + ], + "dragonfly_amd64": [ + "go1.22.4.dragonfly-amd64.tar.gz", + "f2fbb51af4719d3616efb482d6ed2b96579b474156f85a7ddc6f126764feec4b" + ], + "freebsd_386": [ + "go1.22.4.freebsd-386.tar.gz", + "7c54884bb9f274884651d41e61d1bc12738863ad1497e97ea19ad0e9aa6bf7b5" + ], + "freebsd_amd64": [ + "go1.22.4.freebsd-amd64.tar.gz", + "88d44500e1701dd35797619774d6dd51bf60f45a8338b0a82ddc018e4e63fb78" + ], + "freebsd_arm64": [ + "go1.22.4.freebsd-arm64.tar.gz", + "726dc093cf020277be45debf03c3b02b43c2efb3e2a5d4fba8f52579d65327dc" + ], + "freebsd_armv6l": [ + "go1.22.4.freebsd-arm.tar.gz", + "3d9efe47db142a22679aba46b1772e3900b0d87ae13bd2b3bc80dbf2ac0b2cd6" + ], + "freebsd_riscv64": [ + "go1.22.4.freebsd-riscv64.tar.gz", + "5f6b67e5e32f1d6ccb2d4dcb44934a5e2e870a877ba7443d86ec43cfc28afa71" + ], + "illumos_amd64": [ + "go1.22.4.illumos-amd64.tar.gz", + "d56ecc2f85b6418a21ef83879594d0c42ab4f65391a676bb12254870e6690d63" + ], + "linux_386": [ + "go1.22.4.linux-386.tar.gz", + "47a2a8d249a91eb8605c33bceec63aedda0441a43eac47b4721e3975ff916cec" + ], + "linux_amd64": [ + "go1.22.4.linux-amd64.tar.gz", + "ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d" + ], + "linux_arm64": [ + "go1.22.4.linux-arm64.tar.gz", + "a8e177c354d2e4a1b61020aca3562e27ea3e8f8247eca3170e3fa1e0c2f9e771" + ], + "linux_armv6l": [ + "go1.22.4.linux-armv6l.tar.gz", + "e2b143fbacbc9cbd448e9ef41ac3981f0488ce849af1cf37e2341d09670661de" + ], + "linux_loong64": [ + "go1.22.4.linux-loong64.tar.gz", + "e2ff9436e4b34bf6926b06d97916e26d67a909a2effec17967245900f0816f1d" + ], + "linux_mips": [ + "go1.22.4.linux-mips.tar.gz", + "73f0dcc60458c4770593b05a7bc01cc0d31fc98f948c0c2334812c7a1f2fc3f1" + ], + "linux_mips64": [ + "go1.22.4.linux-mips64.tar.gz", + "417af97fc2630a647052375768be4c38adcc5af946352ea5b28613ea81ca5d45" + ], + "linux_mips64le": [ + "go1.22.4.linux-mips64le.tar.gz", + "7486e2d7dd8c98eb44df815ace35a7fe7f30b7c02326e3741bd934077508139b" + ], + "linux_mipsle": [ + "go1.22.4.linux-mipsle.tar.gz", + "69479c8aad301e459a8365b40cad1074a0dbba5defb9291669f94809c4c4be6e" + ], + "linux_ppc64": [ + "go1.22.4.linux-ppc64.tar.gz", + "dd238847e65bc3e2745caca475a5db6522a2fcf85cf6c38fc36a06642b19efd7" + ], + "linux_ppc64le": [ + "go1.22.4.linux-ppc64le.tar.gz", + "a3e5834657ef92523f570f798fed42f1f87bc18222a16815ec76b84169649ec4" + ], + "linux_riscv64": [ + "go1.22.4.linux-riscv64.tar.gz", + "56a827ff7dc6245bcd7a1e9288dffaa1d8b0fd7468562264c1523daf3b4f1b4a" + ], + "linux_s390x": [ + "go1.22.4.linux-s390x.tar.gz", + "7590c3e278e2dc6040aae0a39da3ca1eb2e3921673a7304cc34d588c45889eec" + ], + "netbsd_386": [ + "go1.22.4.netbsd-386.tar.gz", + "ddd2eebe34471a2502de6c5dad04ab27c9fc80cbde7a9ad5b3c66ecec4504e1d" + ], + "netbsd_amd64": [ + "go1.22.4.netbsd-amd64.tar.gz", + "33af79f6f935f6fbacc5d23876450b3567b79348fc065beef8e64081127dd234" + ], + "netbsd_arm64": [ + "go1.22.4.netbsd-arm64.tar.gz", + "c9a2971dec9f6d320c6f2b049b2353c6d0a2d35e87b8a4b2d78a2f0d62545f8e" + ], + "netbsd_armv6l": [ + "go1.22.4.netbsd-arm.tar.gz", + "fa3550ebd5375a70b3bcd342b5a71f4bd271dcbbfaf4eabefa2144ab5d8924b6" + ], + "openbsd_386": [ + "go1.22.4.openbsd-386.tar.gz", + "d21af022331bfdc2b5b161d616c3a1a4573d33cf7a30416ee509a8f3641deb47" + ], + "openbsd_amd64": [ + "go1.22.4.openbsd-amd64.tar.gz", + "72c0094c43f7e5722ec49c2a3e9dfa7a1123ac43a5f3a63eecf3e3795d3ff0ae" + ], + "openbsd_arm64": [ + "go1.22.4.openbsd-arm64.tar.gz", + "a7ab8d4e0b02bf06ed144ba42c61c0e93ee00f2b433415dfd4ad4b6e79f31650" + ], + "openbsd_armv6l": [ + "go1.22.4.openbsd-arm.tar.gz", + "1096831ea3c5ea3ca57d14251d9eda3786889531eb40d7d6775dcaa324d4b065" + ], + "openbsd_ppc64": [ + "go1.22.4.openbsd-ppc64.tar.gz", + "9716327c8a628358798898dc5148c49dbbeb5196bf2cbf088e550721a6e4f60b" + ], + "plan9_386": [ + "go1.22.4.plan9-386.tar.gz", + "a8dd4503c95c32a502a616ab78870a19889c9325fe9bd31eb16dd69346e4bfa8" + ], + "plan9_amd64": [ + "go1.22.4.plan9-amd64.tar.gz", + "5423a25808d76fe5aca8607a2e5ac5673abf45446b168cb5e9d8519ee9fe39a1" + ], + "plan9_armv6l": [ + "go1.22.4.plan9-arm.tar.gz", + "6af939ad583f5c85c09c53728ab7d38c3cc2b39167562d6c18a07c5c6608b370" + ], + "solaris_amd64": [ + "go1.22.4.solaris-amd64.tar.gz", + "e8cabe69c03085725afdb32a6f9998191a3e55a747b270d835fd05000d56abba" + ], + "windows_386": [ + "go1.22.4.windows-386.zip", + "aca4e2c37278a10f1c70dd0df142f7d66b50334fcee48978d409202d308d6d25" + ], + "windows_amd64": [ + "go1.22.4.windows-amd64.zip", + "26321c4d945a0035d8a5bc4a1965b0df401ff8ceac66ce2daadabf9030419a98" + ], + "windows_arm64": [ + "go1.22.4.windows-arm64.zip", + "8a2daa9ea28cbdafddc6171aefed384f4e5b6e714fb52116fe9ed25a132f37ed" + ], + "windows_armv6l": [ + "go1.22.4.windows-arm.zip", + "5fcd0671a49cecf39b41021621ee1b6e7aa1370f37122b72e80d4fd4185833b6" + ] + }, + "1.25.0": { + "aix_ppc64": [ + "go1.25.0.aix-ppc64.tar.gz", + "e5234a7dac67bc86c528fe9752fc9d63557918627707a733ab4cac1a6faed2d4" + ], + "darwin_amd64": [ + "go1.25.0.darwin-amd64.tar.gz", + "5bd60e823037062c2307c71e8111809865116714d6f6b410597cf5075dfd80ef" + ], + "darwin_arm64": [ + "go1.25.0.darwin-arm64.tar.gz", + "544932844156d8172f7a28f77f2ac9c15a23046698b6243f633b0a0b00c0749c" + ], + "dragonfly_amd64": [ + "go1.25.0.dragonfly-amd64.tar.gz", + "5ed3cf9a810a1483822538674f1336c06b51aa1b94d6d545a1a0319a48177120" + ], + "freebsd_386": [ + "go1.25.0.freebsd-386.tar.gz", + "abea5d5c6697e6b5c224731f2158fe87c602996a2a233ac0c4730cd57bf8374e" + ], + "freebsd_amd64": [ + "go1.25.0.freebsd-amd64.tar.gz", + "86e6fe0a29698d7601c4442052dac48bd58d532c51cccb8f1917df648138730b" + ], + "freebsd_arm": [ + "go1.25.0.freebsd-arm.tar.gz", + "d90b78e41921f72f30e8bbc81d9dec2cff7ff384a33d8d8debb24053e4336bfe" + ], + "freebsd_arm64": [ + "go1.25.0.freebsd-arm64.tar.gz", + "451d0da1affd886bfb291b7c63a6018527b269505db21ce6e14724f22ab0662e" + ], + "freebsd_riscv64": [ + "go1.25.0.freebsd-riscv64.tar.gz", + "7b565f76bd8bda46549eeaaefe0e53b251e644c230577290c0f66b1ecdb3cdbe" + ], + "illumos_amd64": [ + "go1.25.0.illumos-amd64.tar.gz", + "b1e1fdaab1ad25aa1c08d7a36c97d45d74b98b89c3f78c6d2145f77face54a2c" + ], + "linux_386": [ + "go1.25.0.linux-386.tar.gz", + "8c602dd9d99bc9453b3995d20ce4baf382cc50855900a0ece5de9929df4a993a" + ], + "linux_amd64": [ + "go1.25.0.linux-amd64.tar.gz", + "2852af0cb20a13139b3448992e69b868e50ed0f8a1e5940ee1de9e19a123b613" + ], + "linux_arm64": [ + "go1.25.0.linux-arm64.tar.gz", + "05de75d6994a2783699815ee553bd5a9327d8b79991de36e38b66862782f54ae" + ], + "linux_armv6l": [ + "go1.25.0.linux-armv6l.tar.gz", + "a5a8f8198fcf00e1e485b8ecef9ee020778bf32a408a4e8873371bfce458cd09" + ], + "linux_loong64": [ + "go1.25.0.linux-loong64.tar.gz", + "cab86b1cf761b1cb3bac86a8877cfc92e7b036fc0d3084123d77013d61432afc" + ], + "linux_mips": [ + "go1.25.0.linux-mips.tar.gz", + "d66b6fb74c3d91b9829dc95ec10ca1f047ef5e89332152f92e136cf0e2da5be1" + ], + "linux_mips64": [ + "go1.25.0.linux-mips64.tar.gz", + "4082e4381a8661bc2a839ff94ba3daf4f6cde20f8fb771b5b3d4762dc84198a2" + ], + "linux_mips64le": [ + "go1.25.0.linux-mips64le.tar.gz", + "70002c299ec7f7175ac2ef673b1b347eecfa54ae11f34416a6053c17f855afcc" + ], + "linux_mipsle": [ + "go1.25.0.linux-mipsle.tar.gz", + "b00a3a39eff099f6df9f1c7355bf28e4589d0586f42d7d4a394efb763d145a73" + ], + "linux_ppc64": [ + "go1.25.0.linux-ppc64.tar.gz", + "df166f33bd98160662560a72ff0b4ba731f969a80f088922bddcf566a88c1ec1" + ], + "linux_ppc64le": [ + "go1.25.0.linux-ppc64le.tar.gz", + "0f18a89e7576cf2c5fa0b487a1635d9bcbf843df5f110e9982c64df52a983ad0" + ], + "linux_riscv64": [ + "go1.25.0.linux-riscv64.tar.gz", + "c018ff74a2c48d55c8ca9b07c8e24163558ffec8bea08b326d6336905d956b67" + ], + "linux_s390x": [ + "go1.25.0.linux-s390x.tar.gz", + "34e5a2e19f2292fbaf8783e3a241e6e49689276aef6510a8060ea5ef54eee408" + ], + "netbsd_386": [ + "go1.25.0.netbsd-386.tar.gz", + "f8586cdb7aa855657609a5c5f6dbf523efa00c2bbd7c76d3936bec80aa6c0aba" + ], + "netbsd_amd64": [ + "go1.25.0.netbsd-amd64.tar.gz", + "ae8dc1469385b86a157a423bb56304ba45730de8a897615874f57dd096db2c2a" + ], + "netbsd_arm": [ + "go1.25.0.netbsd-arm.tar.gz", + "1ff7e4cc764425fc9dd6825eaee79d02b3c7cafffbb3691687c8d672ade76cb7" + ], + "netbsd_arm64": [ + "go1.25.0.netbsd-arm64.tar.gz", + "e1b310739f26724216aa6d7d7208c4031f9ff54c9b5b9a796ddc8bebcb4a5f16" + ], + "openbsd_386": [ + "go1.25.0.openbsd-386.tar.gz", + "4802a9b20e533da91adb84aab42e94aa56cfe3e5475d0550bed3385b182e69d8" + ], + "openbsd_amd64": [ + "go1.25.0.openbsd-amd64.tar.gz", + "c016cd984bebe317b19a4f297c4f50def120dc9788490540c89f28e42f1dabe1" + ], + "openbsd_arm": [ + "go1.25.0.openbsd-arm.tar.gz", + "a1e31d0bf22172ddde42edf5ec811ef81be43433df0948ece52fecb247ccfd8d" + ], + "openbsd_arm64": [ + "go1.25.0.openbsd-arm64.tar.gz", + "343ea8edd8c218196e15a859c6072d0dd3246fbbb168481ab665eb4c4140458d" + ], + "openbsd_ppc64": [ + "go1.25.0.openbsd-ppc64.tar.gz", + "694c14da1bcaeb5e3332d49bdc2b6d155067648f8fe1540c5de8f3cf8e157154" + ], + "openbsd_riscv64": [ + "go1.25.0.openbsd-riscv64.tar.gz", + "aa510ad25cf54c06cd9c70b6d80ded69cb20188ac6e1735655eef29ff7e7885f" + ], + "plan9_386": [ + "go1.25.0.plan9-386.tar.gz", + "46f8cef02086cf04bf186c5912776b56535178d4cb319cd19c9fdbdd29231986" + ], + "plan9_amd64": [ + "go1.25.0.plan9-amd64.tar.gz", + "29b34391d84095e44608a228f63f2f88113a37b74a79781353ec043dfbcb427b" + ], + "plan9_arm": [ + "go1.25.0.plan9-arm.tar.gz", + "0a047107d13ebe7943aaa6d54b1d7bbd2e45e68ce449b52915a818da715799c2" + ], + "solaris_amd64": [ + "go1.25.0.solaris-amd64.tar.gz", + "9977f9e4351984364a3b2b78f8b88bfd1d339812356d5237678514594b7d3611" + ], + "windows_386": [ + "go1.25.0.windows-386.zip", + "df9f39db82a803af0db639e3613a36681ab7a42866b1384b3f3a1045663961a7" + ], + "windows_amd64": [ + "go1.25.0.windows-amd64.zip", + "89efb4f9b30812eee083cc1770fdd2913c14d301064f6454851428f9707d190b" + ], + "windows_arm64": [ + "go1.25.0.windows-arm64.zip", + "27bab004c72b3d7bd05a69b6ec0fc54a309b4b78cc569dd963d8b3ec28bfdb8c" + ] + } + } + } +} diff --git a/README.md b/README.md index 4cc4414f..56e13578 100644 --- a/README.md +++ b/README.md @@ -84,26 +84,12 @@ a Change in Gerrit submitted for review. How to build this plugin ------------------------ -### Gerrit 3.3 build - -GitHub plugin is designed to work with Gerrit 3.3 (currently in development). -In order to build the GitHub plugin you need to have a working Gerrit 3.3 -build in place. +In order to build the GitHub plugin you need to have a Gerrit tree in place. +Symlink the Github plugin folder into gerrit/plugins folder. See https://gerrit-review.googlesource.com/Documentation/dev-bazel.html for a reference on how to build Gerrit using Bazel. -Gerrit 3.3 is distributed for Java 11 only. However, the source code is compatible -with Java 8 assuming you build it from the source repository by yourself. - -The GitHub plugin can be built for Java 17 by using the `javaVersion=1.17` Maven -parameter. - -Example: - git clone https://github.com/GerritForge/github - cd github - mvn -DjavaVersion=17 install - ### singleusergroup plugin You need to install the singleusergroup plugin for Gerrit @@ -114,23 +100,89 @@ used in Gerrit ACLs. As of Gerrit 3.3 singleuserplugin is a core plugin and included in Gerrit tree (if it was cloned recursively). Example: + +```bash cd gerrit bazelisk build plugins/singleusergroup cp bazel-bin/plugins/singleusergroup/singleusergroup.jar $GERRIT_SITE/plugins/. +``` + ### Building GitHub integration for Gerrit -Just clone the Git repository (see https://github.com/GerritForge/github) -and do a `mvn install` from the root directory. -This will create two JARs under github-oauth/target and github-plugin/target: the oauth is a JAR library +Follow the below instruction to clone the repository (see https://github.com/GerritForge/github) +and build the required artifacts. +This will create two JARs under bazel-bin/plugins/github: the oauth is a JAR library to be copied to $GERRIT_SITE/lib whilst the plugin JAR has to be installed as usual under $GERRIT_SITE/plugins. Example: + +```bash git clone https://gerrit.googlesource.com/plugins/github + git clone --recurse-submodules https://gerrit.googlesource.com/gerrit + cd gerrit/plugins + ln -sf ../../github + ln -sf github/external_plugin_deps.MODULE.bazel . + cd .. + bazelisk build plugins/github + cp bazel-bin/plugins/github/github-oauth-*.jar $GERRIT_SITE/lib + cp bazel-bin/plugins/github/github-plugin-*.jar $GERRIT_SITE/plugins +``` + +### Updating Bazel modules + +When the plugin's Bazel module dependencies change, regenerate the Bazel +module lockfile to ensure all module versions are recorded and reproducible. + +Example: + +```bash + cd github + ln -sf ../gerrit/.bazelversion . + bazelisk mod deps --lockfile_mode=update +``` + +This updates `MODULE.bazel.lock` with the currently resolved module versions. + +### Pinning external dependencies + +When the plugin's external dependencies are updated, regenerate the dependency +lockfile to pin the new versions. + +Example: + +```bash + cd github + ln -sf ../gerrit/.bazelversion . + REPIN=1 bazelisk run @github-plugin_plugin_deps//:pin +``` + +This updates `github-plugin_plugin_deps.lock.json` with the latest pinned +dependency versions. + +### Cleaning Bazel Output Directories + +After updating Bazel modules or external dependencies, remove Bazel output +directories before building the plugin in the Gerrit workspace: + +Example: + +```bash cd github - mvn install - cp github-oauth/target/github-oauth-*.jar $GERRIT_SITE/lib - cp github-plugin/target/github-plugin-*.jar $GERRIT_SITE/plugins + bazelisk clean --expunge +``` + +This avoids intermittent build and test failures caused by stale Bazel output +trees. In particular, wildcard test targets such as: + +Example: + +```bash + cd gerrit + bazelisk test plugins/github/... +``` + +may fail unexpectedly if the output directories are not cleaned. ### Register Gerrit as a Github OAuth application ### @@ -175,28 +227,6 @@ Note: Client ID & Client Secret are generated that used in the next step. * Add the webhook secret as `webhookSecret` entry in `github` section of `etc/secure.config`. -### Contributing to the GitHub plugin - -The GitHub plugin uses the lombok library, which provides a set of -annotations to reduce the amount of boilerplate code that has to be -written. - -To build the plugin in Eclipse, the Lombok Eclipse integration must be -installed. - -Download lombok.jar from http://projectlombok.org/ and install: - - -``` - java -jar lombok.jar -``` - -Follow the instructions to select your Eclipse installation if the -installer cannot detect it automatically. - -After the installation, Eclipse must be restarted and compilation -errors should disappear. - ### Notes #### Magic refs diff --git a/external_plugin_deps.MODULE.bazel b/external_plugin_deps.MODULE.bazel new file mode 100644 index 00000000..3e18f800 --- /dev/null +++ b/external_plugin_deps.MODULE.bazel @@ -0,0 +1,19 @@ +# Module fragment for wiring this plugin's Bazel module into the +# Gerrit in-tree build when using Bzlmod. +# +# This file is included from Gerrit's plugins/external_plugin_deps.MODULE.bazel. +# It wires the plugin module into the root dependency graph and exposes +# any repositories it creates (for example via rules_jvm_external). +# +# NOTE: This file must be self-contained: bindings do not cross include() +# boundaries, so it re-declares the rules_jvm_external extension handle. + +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") + +bazel_dep(name = "gerrit-github") +local_path_override( + module_name = "gerrit-github", + path = "plugins/github", +) + +use_repo(maven, "github-plugin_plugin_deps") diff --git a/external_plugin_deps.bzl b/external_plugin_deps.bzl deleted file mode 100644 index 5282ce4c..00000000 --- a/external_plugin_deps.bzl +++ /dev/null @@ -1,115 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") -load("//tools/bzl:maven_jar.bzl", "maven_jar") - -JENKINS = "JENKINS:" -ECLIPSE_EGIT = "ECLIPSE_EGIT:" - -def external_plugin_deps(): - maven_jar( - name = "github-api", - artifact = "org.kohsuke:github-api:1.316", - sha1 = "90ea530f3aeceb46be27b924ae25b4b7b2388c9d", - ) - - maven_jar( - name = "axis", - artifact = "org.apache.axis:axis:1.4", - sha1 = "94a9ce681a42d0352b3ad22659f67835e560d107", - attach_source = False, - ) - - maven_jar( - name = "axis-jaxrpc", - artifact = "org.apache.axis:axis-jaxrpc:1.4", - sha1 = "b393f1f0c0d95b68c86d0b1ab2e687bb71f3c075", - attach_source = False, - ) - - maven_jar( - name = "eclipse-mylyn-github", - artifact = "org.eclipse.mylyn.github:org.eclipse.egit.github.core:6.1.0.202203080745-r", - repository = ECLIPSE_EGIT, - sha1 = "a0bc7ce9f17e2d41bbfbf08e4bc63c3ae0ec15b7", - attach_source = False, - ) - - maven_jar( - name = "commons-discovery", - artifact = "commons-discovery:commons-discovery:0.5", - sha1 = "3a8ac816bbe02d2f88523ef22cbf2c4abd71d6a8", - attach_source = False, - ) - - maven_jar( - name = "velocity", - artifact = "org.apache.velocity:velocity-engine-core:2.3", - sha1 = "e2133b723d0e42be74880d34de6bf6538ea7f915", - ) - - maven_jar( - name = "lombok", - artifact = "org.projectlombok:lombok:1.18.32", - sha1 = "17d46b3e205515e1e8efd3ee4d57ce8018914163", - ) - - maven_jar( - name = "com-sun-mail", - artifact = "com.sun.mail:javax.mail:1.6.2", - sha1 = "935151eb71beff17a2ffac15dd80184a99a0514f", - ) - - maven_jar( - name = "javax-activation", - artifact = "javax.activation:activation:1.1", - sha1 = "e6cb541461c2834bdea3eb920f1884d1eb508b50", - ) - - maven_jar( - name = "jackson-core", - artifact = "com.fasterxml.jackson.core:jackson-core:2.15.2", - sha1 = "a6fe1836469a69b3ff66037c324d75fc66ef137c", - ) - - maven_jar( - name = "jackson-databind", - artifact = "com.fasterxml.jackson.core:jackson-databind:2.15.2", - sha1 = "9353b021f10c307c00328f52090de2bdb4b6ff9c", - ) - - maven_jar( - name = "jackson-annotations", - artifact = "com.fasterxml.jackson.core:jackson-annotations:2.15.2", - sha1 = "4724a65ac8e8d156a24898d50fd5dbd3642870b8", - ) - - maven_jar( - name = "org-ow2-asm", - artifact = "org.ow2.asm:asm:9.6", - sha1 = "aa205cf0a06dbd8e04ece91c0b37c3f5d567546a", - ) - - maven_jar( - name = "org-ow2-asm-tree", - artifact = "org.ow2.asm:asm-tree:9.6", - sha1 = "c0cdda9d211e965d2a4448aa3fd86110f2f8c2de", - ) - - maven_jar( - name = "org-ow2-asm-commons", - artifact = "org.ow2.asm:asm-commons:9.6", - sha1 = "f1a9e5508eff490744144565c47326c8648be309", - ) - - maven_jar( - name = "bridge-method-injector", - artifact = "com.infradna.tool:bridge-method-injector:1.29", - repository = JENKINS, - sha1 = "5b6c616c7a6e04beb4178327d616af4f1bbe88da", - ) - - maven_jar( - name = "bridge-method-annotation", - artifact = "com.infradna.tool:bridge-method-annotation:1.29", - repository = JENKINS, - sha1 = "55dd67d0578d107697803a95cb9c235a9bd83ec1", - ) diff --git a/github-oauth/BUILD b/github-oauth/BUILD index 4f80450f..4e98ce2d 100644 --- a/github-oauth/BUILD +++ b/github-oauth/BUILD @@ -1,5 +1,12 @@ -load("//tools/bzl:junit.bzl", "junit_tests") -load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_DEPS_NEVERLINK") +load( + "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", + "gerrit_api_neverlink", + "gerrit_plugin_tests", +) +load("@rules_java//java:defs.bzl", "java_binary", "java_library") +load("@rules_jvm_external//:defs.bzl", "artifact") + +EXT_REPO = "github-plugin_plugin_deps" java_binary( name = "github-oauth", @@ -12,26 +19,23 @@ java_library( name = "github-oauth-lib", srcs = glob(["src/main/java/**/*.java"]), visibility = ["//visibility:public"], - deps = PLUGIN_DEPS_NEVERLINK + [ + deps = [ + artifact( + c, + repository_name = EXT_REPO, + ) + for c in [ + "com.infradna.tool:bridge-method-injector", + "org.kohsuke:github-api", + ] + ] + [ "//lib:servlet-api", - "@bridge-method-annotation//jar", - "@bridge-method-injector//jar", - "@commons-io//jar", - "@github-api//jar", - "@jackson-annotations//jar", - "@jackson-core//jar", - "@jackson-databind//jar", - "@org-ow2-asm-commons//jar", - "@org-ow2-asm-tree//jar", - "@org-ow2-asm//jar", - ], + ] + gerrit_api_neverlink(""), ) -junit_tests( +gerrit_plugin_tests( name = "github-oauth_tests", srcs = glob(["src/test/java/**/*.java"]), tags = ["github"], - deps = PLUGIN_DEPS + [ - ":github-oauth-lib", - ], + deps = [":github-oauth-lib"], ) diff --git a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubLogin.java b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubLogin.java index 40d0bea1..cf01156b 100644 --- a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubLogin.java +++ b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubLogin.java @@ -13,11 +13,11 @@ import static java.util.concurrent.TimeUnit.DAYS; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.Scope; import com.google.common.base.MoreObjects; import com.google.common.base.Strings; import com.google.inject.Inject; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.Scope; import java.io.IOException; import java.io.Serializable; import java.util.Arrays; diff --git a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubOAuthConfig.java b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubOAuthConfig.java index 7ee8a7ea..30dbcd60 100644 --- a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubOAuthConfig.java +++ b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/GitHubOAuthConfig.java @@ -13,6 +13,7 @@ import static com.gerritforge.gerrit.plugins.github.oauth.CanonicalWebUrls.trimTrailingSlash; import static com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig.KeyConfig.PASSWORD_DEVICE_CONFIG_LABEL; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.Scope; import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; import com.google.common.base.Strings; @@ -22,7 +23,6 @@ import com.google.gerrit.server.config.GerritServerConfig; import com.google.inject.Inject; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.Scope; import java.io.FileInputStream; import java.io.IOException; import java.nio.file.Path; diff --git a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/IdentifiedUserGitHubLoginProvider.java b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/IdentifiedUserGitHubLoginProvider.java index 38691599..49727781 100644 --- a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/IdentifiedUserGitHubLoginProvider.java +++ b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/IdentifiedUserGitHubLoginProvider.java @@ -11,6 +11,7 @@ package com.gerritforge.gerrit.plugins.github.oauth; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken; import com.google.gerrit.common.Nullable; import com.google.gerrit.server.IdentifiedUser; import com.google.gerrit.server.account.AccountCache; @@ -19,7 +20,6 @@ import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken; import java.io.IOException; import java.util.Collection; import org.slf4j.Logger; diff --git a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/OAuthCache.java b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/OAuthCache.java index e09b7924..77d3a4d3 100644 --- a/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/OAuthCache.java +++ b/github-oauth/src/main/java/com/gerritforge/gerrit/plugins/github/oauth/OAuthCache.java @@ -10,6 +10,7 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.oauth; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import com.google.gerrit.server.cache.CacheModule; @@ -17,7 +18,6 @@ import com.google.inject.Module; import com.google.inject.Singleton; import com.google.inject.name.Named; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken; import java.util.concurrent.ExecutionException; @Singleton diff --git a/github-plugin/BUILD b/github-plugin/BUILD index 00126847..c23a8a2f 100644 --- a/github-plugin/BUILD +++ b/github-plugin/BUILD @@ -1,22 +1,28 @@ load( - "//plugins/github:java_library_without_header_compilation.bzl", - "java_library_without_header_compilation", -) -load("//tools/bzl:junit.bzl", "junit_tests") -load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_DEPS_NEVERLINK", "PLUGIN_TEST_DEPS", "gerrit_plugin") - -SOURCES_WITH_LOMBOK_USAGE = [ - "src/main/java/com/gerritforge/gerrit/plugins/github/git/GitHubRepository.java", - "src/main/java/com/gerritforge/gerrit/plugins/github/GitHubURL.java", + "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", + "gerrit_plugin", + "gerrit_plugin_tests", +) +load("@rules_java//java:defs.bzl", "java_library") + +PLUGIN = "github-plugin" + +EXT_DEPS = [ + "com.sun.mail:javax.mail", + "commons-discovery:commons-discovery", + "javax.activation:activation", + "org.apache.axis:axis", + "org.apache.axis:axis-jaxrpc", + "org.apache.velocity:velocity-engine-core", + "org.eclipse.mylyn.github:org.eclipse.egit.github.core", + "org.kohsuke:github-api", ] gerrit_plugin( - name = "github-plugin", - srcs = glob( - ["src/main/java/**/*.java"], - exclude = SOURCES_WITH_LOMBOK_USAGE, - ), + name = PLUGIN, + srcs = glob(["src/main/java/**/*.java"]), dir_name = "github", + ext_deps = EXT_DEPS, manifest_entries = [ "Gerrit-PluginName: github-plugin", "Gerrit-Module: com.gerritforge.gerrit.plugins.github.GuiceModule", @@ -29,75 +35,23 @@ gerrit_plugin( resource_jars = ["//plugins/github/github-plugin/web:github-plugin"], resources = glob(["src/main/resources/**/*"]), deps = [ - ":github-plugin-lib", ":replication-api", "//plugins/gerrit-bsl-license", "//plugins/github/github-oauth:github-oauth-lib", - "@axis-jaxrpc//jar", - "@axis//jar", - "@com-sun-mail//jar", - "@commons-codec//jar", - "@commons-discovery//jar", - "@commons-io//jar", - "@eclipse-mylyn-github//jar", - "@github-api//jar", - "@javax-activation//jar", - "@velocity//jar", - ], -) - -java_library_without_header_compilation( - name = "github-plugin-lib", - dep = ":github-plugin-lib_impl", - visibility = ["//visibility:public"], -) - -java_library( - name = "github-plugin-lib_impl", - srcs = SOURCES_WITH_LOMBOK_USAGE, - deps = PLUGIN_DEPS_NEVERLINK + [ - ":lombok", - "//plugins/github/github-oauth:github-oauth-lib", - "@axis-jaxrpc//jar", - "@axis//jar", - "@commons-codec//jar", - "@commons-discovery//jar", - "@commons-io//jar", - "@eclipse-mylyn-github//jar", - "@github-api//jar", - "@velocity//jar", ], ) -junit_tests( - name = "github-plugin_tests", +gerrit_plugin_tests( srcs = glob(["src/test/java/**/*.java"]), - tags = ["github"], - deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ - ":github-plugin-lib", - ":github-plugin__plugin", + ext_deps = ["org.kohsuke:github-api"], + plugin = PLUGIN, + deps = [ "//javatests/com/google/gerrit/util/http/testutil", "//plugins/github/github-oauth:github-oauth-lib", "//plugins/replication:replication-api", - "@commons-io//jar", - "@github-api//jar", ], ) -java_plugin( - name = "lombok_plugin", - generates_api = True, - processor_class = "lombok.launch.AnnotationProcessorHider$AnnotationProcessor", - deps = ["@lombok//jar"], -) - -java_library( - name = "lombok", - exported_plugins = [":lombok_plugin"], - neverlink = True, - exports = ["@lombok//jar"], -) - java_library( name = "replication-api", neverlink = True, diff --git a/github-plugin/github-plugin_third_party_runtime_jars.allowlist.txt b/github-plugin/github-plugin_third_party_runtime_jars.allowlist.txt new file mode 100644 index 00000000..c1429409 --- /dev/null +++ b/github-plugin/github-plugin_third_party_runtime_jars.allowlist.txt @@ -0,0 +1,15 @@ +activation +annotation-indexer +axis +axis-jaxrpc +bridge-method-annotation +bridge-method-injector +commons-discovery +github-api +jackson-annotations +jackson-core +jackson-databind +javax.mail +libgithub-oauth-lib +org.eclipse.egit.github.core-6.1.0.202203080745-r +velocity-engine-core diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubConfig.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubConfig.java index 7f769e53..73bec1b1 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubConfig.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubConfig.java @@ -10,6 +10,7 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig; import com.google.common.base.MoreObjects; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Table; @@ -20,7 +21,6 @@ import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig; import java.net.MalformedURLException; import java.nio.file.Path; import org.eclipse.jgit.lib.Config; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubOAuthServiceProvider.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubOAuthServiceProvider.java index 232f158b..44242ab6 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubOAuthServiceProvider.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GitHubOAuthServiceProvider.java @@ -11,6 +11,8 @@ package com.gerritforge.gerrit.plugins.github; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol; import com.google.common.collect.Sets; import com.google.gerrit.extensions.auth.oauth.OAuthServiceProvider; import com.google.gerrit.extensions.auth.oauth.OAuthToken; @@ -18,8 +20,6 @@ import com.google.gerrit.extensions.auth.oauth.OAuthVerifier; import com.google.gerrit.server.account.externalids.ExternalId; import com.google.inject.Inject; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthProtocol; import java.io.IOException; import org.kohsuke.github.GHMyself; import org.kohsuke.github.GitHub; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceHttpModule.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceHttpModule.java index 2f3b60e5..33149c4f 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceHttpModule.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceHttpModule.java @@ -10,17 +10,6 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github; -import com.google.gerrit.extensions.annotations.Exports; -import com.google.gerrit.extensions.auth.oauth.OAuthServiceProvider; -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.JavaScriptPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.gerrit.httpd.AllRequestFilter; -import com.google.inject.Scopes; -import com.google.inject.TypeLiteral; -import com.google.inject.assistedinject.FactoryModuleBuilder; -import com.google.inject.name.Names; -import com.google.inject.servlet.ServletModule; import com.gerritforge.gerrit.plugins.github.filters.GitHubGroupCacheRefreshFilter; import com.gerritforge.gerrit.plugins.github.filters.GitHubOAuthFilter; import com.gerritforge.gerrit.plugins.github.git.CreateProjectStep; @@ -41,6 +30,17 @@ import com.gerritforge.gerrit.plugins.github.velocity.VelocityStaticServlet; import com.gerritforge.gerrit.plugins.github.velocity.VelocityViewServlet; import com.gerritforge.gerrit.plugins.github.wizard.VelocityControllerServlet; +import com.google.gerrit.extensions.annotations.Exports; +import com.google.gerrit.extensions.auth.oauth.OAuthServiceProvider; +import com.google.gerrit.extensions.registration.DynamicSet; +import com.google.gerrit.extensions.webui.JavaScriptPlugin; +import com.google.gerrit.extensions.webui.WebUiPlugin; +import com.google.gerrit.httpd.AllRequestFilter; +import com.google.inject.Scopes; +import com.google.inject.TypeLiteral; +import com.google.inject.assistedinject.FactoryModuleBuilder; +import com.google.inject.name.Names; +import com.google.inject.servlet.ServletModule; import org.apache.http.client.HttpClient; import org.apache.velocity.runtime.RuntimeInstance; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceModule.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceModule.java index ba2830d2..8608a7dc 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceModule.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/GuiceModule.java @@ -11,17 +11,6 @@ package com.gerritforge.gerrit.plugins.github; -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.restapi.RestApiModule; -import com.google.gerrit.extensions.webui.TopMenu; -import com.google.gerrit.server.account.GroupBackend; -import com.google.gerrit.server.events.EventListener; -import com.google.gerrit.server.project.ProjectResource; -import com.google.gson.Gson; -import com.google.inject.AbstractModule; -import com.google.inject.Scopes; -import com.google.inject.TypeLiteral; -import com.google.inject.assistedinject.FactoryModuleBuilder; import com.gerritforge.gerrit.plugins.github.group.GitHubGroupBackend; import com.gerritforge.gerrit.plugins.github.group.GitHubGroupMembership; import com.gerritforge.gerrit.plugins.github.group.GitHubGroupsCache; @@ -34,6 +23,17 @@ import com.gerritforge.gerrit.plugins.github.replication.ReplicationStatusFlatFile; import com.gerritforge.gerrit.plugins.github.replication.ReplicationStatusListener; import com.gerritforge.gerrit.plugins.github.replication.ReplicationStatusStore; +import com.google.gerrit.extensions.registration.DynamicSet; +import com.google.gerrit.extensions.restapi.RestApiModule; +import com.google.gerrit.extensions.webui.TopMenu; +import com.google.gerrit.server.account.GroupBackend; +import com.google.gerrit.server.events.EventListener; +import com.google.gerrit.server.project.ProjectResource; +import com.google.gson.Gson; +import com.google.inject.AbstractModule; +import com.google.inject.Scopes; +import com.google.inject.TypeLiteral; +import com.google.inject.assistedinject.FactoryModuleBuilder; public class GuiceModule extends AbstractModule { diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/InitGitHub.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/InitGitHub.java index 30fce06b..537a9b79 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/InitGitHub.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/InitGitHub.java @@ -23,6 +23,7 @@ import static com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig.KeyConfig.SECRET_KEY_CONFIG_LABEL; import static com.gerritforge.gerrit.plugins.github.oauth.PasswordGenerator.DEFAULT_PASSWORD_FILE; +import com.gerritforge.gerrit.plugins.github.oauth.PasswordGenerator; import com.google.common.base.Strings; import com.google.gerrit.extensions.annotations.PluginName; import com.google.gerrit.extensions.client.AuthType; @@ -33,7 +34,6 @@ import com.google.gerrit.pgm.init.api.Section; import com.google.gerrit.server.config.SitePaths; import com.google.inject.Inject; -import com.gerritforge.gerrit.plugins.github.oauth.PasswordGenerator; import java.net.URISyntaxException; import java.nio.file.Path; import java.util.EnumSet; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubGroupCacheRefreshFilter.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubGroupCacheRefreshFilter.java index de9afdfc..b9ad4ef4 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubGroupCacheRefreshFilter.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubGroupCacheRefreshFilter.java @@ -11,10 +11,10 @@ package com.gerritforge.gerrit.plugins.github.filters; +import com.gerritforge.gerrit.plugins.github.group.GitHubGroupsCache; import com.google.common.annotations.VisibleForTesting; import com.google.common.flogger.FluentLogger; import com.google.gerrit.httpd.AllRequestFilter; -import com.gerritforge.gerrit.plugins.github.group.GitHubGroupsCache; import java.io.IOException; import java.util.Optional; import javax.inject.Inject; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubOAuthFilter.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubOAuthFilter.java index 6370670d..fc0c051e 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubOAuthFilter.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/filters/GitHubOAuthFilter.java @@ -10,6 +10,12 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.filters; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.gerritforge.gerrit.plugins.github.oauth.IdentifiedUserGitHubLoginProvider; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthFilter; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthTokenCipher; +import com.gerritforge.gerrit.plugins.github.oauth.OAuthWebFilter; +import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; import com.google.common.base.Predicate; import com.google.common.collect.Collections2; import com.google.gerrit.server.CurrentUser; @@ -19,12 +25,6 @@ import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; -import com.gerritforge.gerrit.plugins.github.oauth.IdentifiedUserGitHubLoginProvider; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthFilter; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthTokenCipher; -import com.gerritforge.gerrit.plugins.github.oauth.OAuthWebFilter; -import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; import java.io.IOException; import java.util.Collection; import javax.servlet.Filter; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/AbstractCloneJob.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/AbstractCloneJob.java index 3a4322c8..3feddd49 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/AbstractCloneJob.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/AbstractCloneJob.java @@ -11,6 +11,7 @@ package com.gerritforge.gerrit.plugins.github.git; import com.google.inject.ProvisionException; +import org.kohsuke.github.HttpException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -34,6 +35,12 @@ protected String getErrorDescription(Throwable exception) { return getErrorDescription(cause); } return "Import startup failed"; + } else if (exception instanceof HttpException httpException) { + return String.format( + "GitHub API failed with status code %d (%s), see %s for more details", + httpException.getResponseCode(), + httpException.getResponseMessage(), + httpException.getUrl()); } else { return "Internal error"; } diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/CreateProjectStep.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/CreateProjectStep.java index 622c0321..f6a42fa4 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/CreateProjectStep.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/CreateProjectStep.java @@ -10,6 +10,8 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; +import com.gerritforge.gerrit.plugins.github.GitHubURL; import com.google.gerrit.entities.AccessSection; import com.google.gerrit.entities.AccountGroup; import com.google.gerrit.entities.BooleanProjectConfig; @@ -29,8 +31,6 @@ import com.google.gerrit.server.util.OneOffRequestContext; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; -import com.gerritforge.gerrit.plugins.github.GitHubURL; import org.eclipse.jgit.lib.ProgressMonitor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitCloneStep.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitCloneStep.java index 6482c5b4..2df9193c 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitCloneStep.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitCloneStep.java @@ -12,6 +12,7 @@ import static java.util.stream.Collectors.toList; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; import com.google.gerrit.entities.Project; import com.google.gerrit.extensions.api.GerritApi; import com.google.gerrit.extensions.api.changes.NotifyHandling; @@ -29,7 +30,6 @@ import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; import java.io.File; import java.io.IOException; import java.util.stream.Stream; @@ -109,7 +109,7 @@ private void createNewProject() throws GitException { GitHubRepository ghRepository = getRepository(); pi.parent = config.getBaseProject(ghRepository.isPrivate()); pi.branches = Stream.ofNullable(ghRepository.getDefaultBranch()).collect(toList()); - gerritApi.projects().create(pi).get(); + var unused = gerritApi.projects().create(pi).get(); } catch (RestApiException e) { throw new GitException( "Unable to create repository " + projectName + ":" + e.getMessage(), e); diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitHubRepository.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitHubRepository.java index 49055f84..833982a8 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitHubRepository.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitHubRepository.java @@ -10,21 +10,23 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; -import com.google.inject.Inject; -import com.google.inject.assistedinject.Assisted; import com.gerritforge.gerrit.plugins.github.GitHubURL; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.google.inject.Inject; +import com.google.inject.assistedinject.Assisted; import java.io.IOException; -import lombok.experimental.Delegate; +import java.util.Map; import org.eclipse.jgit.errors.UnsupportedCredentialItem; import org.eclipse.jgit.transport.CredentialItem; import org.eclipse.jgit.transport.CredentialsProvider; import org.eclipse.jgit.transport.URIish; +import org.kohsuke.github.GHBranch; +import org.kohsuke.github.GHRef; import org.kohsuke.github.GHRepository; import org.kohsuke.github.GitHub; -public class GitHubRepository extends GHRepository { +public class GitHubRepository { public interface Factory { GitHubRepository create( @Assisted("organisation") String organisation, @Assisted("repository") String repository); @@ -35,8 +37,7 @@ GitHubRepository create( private final String cloneUrl; private final String username; private final String password; - - @Delegate private GHRepository ghRepository; + private final GHRepository ghRepository; public String getCloneUrl() { return cloneUrl.replace("://", "://" + username + "@"); @@ -67,6 +68,33 @@ public GitHubRepository( this.ghRepository = gh.getRepository(organisation + "/" + repository); } + public boolean isPrivate() { + return ghRepository.isPrivate(); + } + + public String getDefaultBranch() { + return ghRepository.getDefaultBranch(); + } + + public Map getBranches() throws IOException { + return ghRepository.getBranches(); + } + + public GHRef[] getRefs() throws IOException { + try { + return ghRepository.getRefs(); + } catch (org.kohsuke.github.HttpException e) { + if (e.getMessage().toLowerCase().contains("repository is empty")) { + return new GHRef[0]; + } + throw e; + } + } + + public long getSize() { + return ghRepository.getSize(); + } + public CredentialsProvider getCredentialsProvider() { return new CredentialsProvider() { diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitImporter.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitImporter.java index 16633678..95b0f783 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitImporter.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/GitImporter.java @@ -10,10 +10,10 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; +import com.gerritforge.gerrit.plugins.github.oauth.HttpSessionProvider; import com.google.gerrit.server.IdentifiedUser; import com.google.inject.Inject; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.oauth.HttpSessionProvider; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/JobExecutor.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/JobExecutor.java index 318f8723..cdf42bb6 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/JobExecutor.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/JobExecutor.java @@ -10,10 +10,10 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; import com.google.gerrit.server.util.RequestScopePropagator; import com.google.inject.Inject; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; import java.util.Random; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/MagicRefCheckStep.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/MagicRefCheckStep.java index 2704936d..e291d752 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/MagicRefCheckStep.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/MagicRefCheckStep.java @@ -10,13 +10,13 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; import com.google.common.base.Joiner; import com.google.common.collect.Lists; import com.google.gerrit.entities.RefNames; import com.google.gerrit.server.util.MagicBranch; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; import java.util.List; import org.eclipse.jgit.lib.ProgressMonitor; import org.kohsuke.github.GHRef; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ProtectedBranchesCheckStep.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ProtectedBranchesCheckStep.java index 111293b8..1b28515a 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ProtectedBranchesCheckStep.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ProtectedBranchesCheckStep.java @@ -11,11 +11,11 @@ package com.gerritforge.gerrit.plugins.github.git; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; import com.google.common.base.Joiner; import com.google.common.collect.Lists; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; import java.util.Collection; import java.util.List; import org.eclipse.jgit.lib.ProgressMonitor; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/PullRequestImportJob.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/PullRequestImportJob.java index fd76cd20..fa923346 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/PullRequestImportJob.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/PullRequestImportJob.java @@ -12,6 +12,9 @@ import static com.google.gerrit.entities.RefNames.REFS_HEADS; +import com.gerritforge.gerrit.plugins.github.git.GitJobStatus.Code; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; import com.google.common.collect.Lists; import com.google.gerrit.entities.Account; import com.google.gerrit.entities.Change.Id; @@ -29,9 +32,6 @@ import com.google.gerrit.server.project.ProjectState; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.git.GitJobStatus.Code; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; -import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; import java.io.IOException; import java.util.List; import java.util.Optional; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/QuotaCheckStep.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/QuotaCheckStep.java index ec86c0a5..ef985d61 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/QuotaCheckStep.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/QuotaCheckStep.java @@ -12,12 +12,12 @@ import static com.google.gerrit.server.quota.QuotaGroupDefinitions.REPOSITORY_SIZE_GROUP; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; import com.google.gerrit.entities.Project; import com.google.gerrit.server.quota.QuotaBackend; import com.google.gerrit.server.quota.QuotaResponse; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; import org.eclipse.jgit.lib.ProgressMonitor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicateProjectStep.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicateProjectStep.java index b75a14b1..dd717ed6 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicateProjectStep.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicateProjectStep.java @@ -10,10 +10,10 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; +import com.gerritforge.gerrit.plugins.github.GitHubURL; import com.google.gerrit.extensions.registration.DynamicItem; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; -import com.gerritforge.gerrit.plugins.github.GitHubURL; import com.googlesource.gerrit.plugins.replication.api.ReplicationRemotesApi; import java.io.IOException; import org.eclipse.jgit.lib.Config; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilder.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilder.java index f07dc9db..4c4c436f 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilder.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilder.java @@ -10,12 +10,12 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.git; -import com.google.common.base.Strings; -import com.google.gerrit.extensions.registration.DynamicItem; -import com.google.inject.Inject; import com.gerritforge.gerrit.plugins.github.GitHubURL; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.google.common.base.Strings; +import com.google.gerrit.extensions.registration.DynamicItem; +import com.google.inject.Inject; import com.googlesource.gerrit.plugins.replication.api.ReplicationRemotesApi; import java.io.IOException; import java.util.ArrayList; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupBackend.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupBackend.java index a869b994..6cc27c2f 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupBackend.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupBackend.java @@ -11,9 +11,9 @@ package com.gerritforge.gerrit.plugins.github.group; -import static com.google.common.base.Preconditions.checkArgument; import static com.gerritforge.gerrit.plugins.github.group.GitHubGroup.NAME_PREFIX; import static com.gerritforge.gerrit.plugins.github.group.GitHubGroup.UUID_PREFIX; +import static com.google.common.base.Preconditions.checkArgument; import com.google.common.base.Strings; import com.google.common.collect.ImmutableSet; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupsCache.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupsCache.java index 83a2fa74..e86284b1 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupsCache.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/group/GitHubGroupsCache.java @@ -14,6 +14,9 @@ import static com.gerritforge.gerrit.plugins.github.group.CurrentUsernameProvider.CURRENT_USERNAME; import static java.time.temporal.ChronoUnit.MINUTES; +import com.gerritforge.gerrit.plugins.github.groups.OrganizationStructure; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.gerritforge.gerrit.plugins.github.oauth.UserScopedProvider; import com.google.common.annotations.VisibleForTesting; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; @@ -26,9 +29,6 @@ import com.google.inject.Singleton; import com.google.inject.name.Named; import com.google.inject.name.Names; -import com.gerritforge.gerrit.plugins.github.groups.OrganizationStructure; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; -import com.gerritforge.gerrit.plugins.github.oauth.UserScopedProvider; import java.io.FileNotFoundException; import java.io.IOException; import java.time.Duration; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/PullRequestHandler.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/PullRequestHandler.java index db55683a..f3a529b6 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/PullRequestHandler.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/PullRequestHandler.java @@ -11,11 +11,11 @@ package com.gerritforge.gerrit.plugins.github.notification; +import com.gerritforge.gerrit.plugins.github.git.PullRequestImportType; +import com.gerritforge.gerrit.plugins.github.git.PullRequestImporter; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.git.PullRequestImportType; -import com.gerritforge.gerrit.plugins.github.git.PullRequestImporter; import java.io.IOException; import org.kohsuke.github.GHEventPayload.PullRequest; import org.kohsuke.github.GHRepository; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/WebhookServlet.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/WebhookServlet.java index 553a078c..c63f5898 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/WebhookServlet.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/notification/WebhookServlet.java @@ -16,6 +16,10 @@ import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND; import static javax.servlet.http.HttpServletResponse.SC_NO_CONTENT; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.gerritforge.gerrit.plugins.github.oauth.UserScopedProvider; import com.google.common.base.Function; import com.google.common.base.Joiner; import com.google.common.base.Strings; @@ -28,10 +32,6 @@ import com.google.inject.Inject; import com.google.inject.Injector; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; -import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; -import com.gerritforge.gerrit.plugins.github.oauth.UserScopedProvider; import java.io.BufferedReader; import java.io.IOException; import java.io.UnsupportedEncodingException; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/velocity/VelocityViewServlet.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/velocity/VelocityViewServlet.java index e0ba1f01..38c5a9a0 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/velocity/VelocityViewServlet.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/velocity/VelocityViewServlet.java @@ -12,6 +12,11 @@ import static com.gerritforge.gerrit.plugins.github.oauth.GitHubOAuthConfig.GITHUB_PLUGIN_OAUTH_SCOPE; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; +import com.gerritforge.gerrit.plugins.github.oauth.CanonicalWebUrls; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.gerritforge.gerrit.plugins.github.oauth.VirtualDomainConfig; import com.google.common.base.MoreObjects; import com.google.gerrit.server.CurrentUser; import com.google.gerrit.server.config.AuthConfig; @@ -19,11 +24,6 @@ import com.google.inject.Provider; import com.google.inject.Singleton; import com.google.inject.name.Named; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; -import com.gerritforge.gerrit.plugins.github.oauth.CanonicalWebUrls; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; -import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; -import com.gerritforge.gerrit.plugins.github.oauth.VirtualDomainConfig; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Map.Entry; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/AccountController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/AccountController.java index 68513e2e..9e682086 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/AccountController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/AccountController.java @@ -12,6 +12,7 @@ import static com.google.gerrit.server.account.externalids.ExternalId.SCHEME_USERNAME; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.google.common.base.Function; import com.google.common.collect.Lists; import com.google.common.collect.Sets; @@ -37,7 +38,6 @@ import com.google.gerrit.server.restapi.account.PutPreferred; import com.google.inject.Inject; import com.google.inject.Provider; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; @@ -127,10 +127,10 @@ private void setAccountIdentity(IdentifiedUser user, HttpServletRequest req) AuthResult result = accountManager.link(accountId, authRequestFactory.createForEmail(email)); log.debug("Account {} linked to email {}: result = {}", accountId, email, result); - putPreferred.apply(new AccountResource.Email(user, email), null); + var unused = putPreferred.apply(new AccountResource.Email(user, email), null); NameInput nameInput = new NameInput(); nameInput.name = fullName; - putName.apply(user, nameInput); + var unusedName = putName.apply(user, nameInput); ExternalId.Key key = ExternalId.Key.create(SCHEME_USERNAME, username, authConfig.isUserNameCaseInsensitive()); @@ -232,7 +232,7 @@ public long getContentLength() { } }; try { - restAddSshKey.apply(res, key); + var unused = restAddSshKey.apply(res, key); } catch (Exception e) { log.error("Add key " + sshKeyWithLabel + " failed", e); throw new IOException("Cannot store SSH Key '" + sshKeyWithLabel + "'", e); diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/JobStatusController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/JobStatusController.java index c99d1082..7fc0ecae 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/JobStatusController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/JobStatusController.java @@ -10,12 +10,12 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; -import com.google.common.collect.Lists; -import com.google.gson.Gson; -import com.google.gson.stream.JsonWriter; import com.gerritforge.gerrit.plugins.github.git.BatchImporter; import com.gerritforge.gerrit.plugins.github.git.GitJob; import com.gerritforge.gerrit.plugins.github.git.GitJobStatus; +import com.google.common.collect.Lists; +import com.google.gson.Gson; +import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Collection; import java.util.List; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportController.java index 401ffbc5..c1939754 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportController.java @@ -10,13 +10,13 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; +import com.gerritforge.gerrit.plugins.github.git.PullRequestImportType; +import com.gerritforge.gerrit.plugins.github.git.PullRequestImporter; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.google.gerrit.server.IdentifiedUser; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.git.PullRequestImportType; -import com.gerritforge.gerrit.plugins.github.git.PullRequestImporter; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import java.io.IOException; import java.util.Map.Entry; import javax.servlet.ServletException; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportStatusController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportStatusController.java index ce2a9e22..a6f5876b 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportStatusController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestImportStatusController.java @@ -10,11 +10,11 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; +import com.gerritforge.gerrit.plugins.github.git.PullRequestImporter; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.google.gerrit.server.IdentifiedUser; import com.google.inject.Inject; import com.google.inject.Provider; -import com.gerritforge.gerrit.plugins.github.git.PullRequestImporter; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestListController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestListController.java index edc6afdd..72e94398 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestListController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/PullRequestListController.java @@ -10,6 +10,8 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.google.common.base.Optional; import com.google.common.base.Strings; import com.google.common.collect.Lists; @@ -27,8 +29,6 @@ import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneCancelController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneCancelController.java index 5a488762..1bc20e14 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneCancelController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneCancelController.java @@ -10,12 +10,12 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; -import com.google.gerrit.server.IdentifiedUser; -import com.google.inject.Inject; -import com.google.inject.Singleton; import com.gerritforge.gerrit.plugins.github.git.GitImporter; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.google.gerrit.server.IdentifiedUser; +import com.google.inject.Inject; +import com.google.inject.Singleton; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneController.java index 0230874a..54a93567 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneController.java @@ -10,11 +10,11 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; -import com.google.gerrit.server.IdentifiedUser; -import com.google.inject.Inject; import com.gerritforge.gerrit.plugins.github.git.GitImporter; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.google.gerrit.server.IdentifiedUser; +import com.google.inject.Inject; import java.io.IOException; import java.util.Map.Entry; import java.util.Set; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneStatusController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneStatusController.java index be095e33..b37794e0 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneStatusController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesCloneStatusController.java @@ -10,12 +10,12 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; -import com.google.gerrit.server.IdentifiedUser; -import com.google.inject.Inject; -import com.google.inject.Singleton; import com.gerritforge.gerrit.plugins.github.git.GitImporter; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.google.gerrit.server.IdentifiedUser; +import com.google.inject.Inject; +import com.google.inject.Singleton; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesListController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesListController.java index 640be370..ca2dc450 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesListController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/RepositoriesListController.java @@ -10,6 +10,8 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.google.common.base.Strings; import com.google.gerrit.entities.Project; import com.google.gerrit.server.IdentifiedUser; @@ -19,8 +21,6 @@ import com.google.gson.JsonPrimitive; import com.google.inject.Inject; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityController.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityController.java index a80c1c9a..df1edd4a 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityController.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityController.java @@ -10,8 +10,8 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; -import com.google.gerrit.server.IdentifiedUser; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.google.gerrit.server.IdentifiedUser; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; diff --git a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityControllerServlet.java b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityControllerServlet.java index ae2ffc58..b513805a 100644 --- a/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityControllerServlet.java +++ b/github-plugin/src/main/java/com/gerritforge/gerrit/plugins/github/wizard/VelocityControllerServlet.java @@ -10,15 +10,15 @@ // limitations under the License. package com.gerritforge.gerrit.plugins.github.wizard; +import com.gerritforge.gerrit.plugins.github.GitHubConfig; +import com.gerritforge.gerrit.plugins.github.GitHubConfig.NextPage; +import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; +import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; import com.google.gerrit.server.IdentifiedUser; import com.google.inject.Inject; import com.google.inject.Injector; import com.google.inject.Provider; import com.google.inject.Singleton; -import com.gerritforge.gerrit.plugins.github.GitHubConfig; -import com.gerritforge.gerrit.plugins.github.GitHubConfig.NextPage; -import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; -import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; diff --git a/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/GitHubGroupCacheRefreshFilterTest.java b/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/GitHubGroupCacheRefreshFilterTest.java index 414c15a2..986d505b 100644 --- a/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/GitHubGroupCacheRefreshFilterTest.java +++ b/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/GitHubGroupCacheRefreshFilterTest.java @@ -13,14 +13,14 @@ import static com.google.common.truth.Truth.assertThat; +import com.gerritforge.gerrit.plugins.github.filters.GitHubGroupCacheRefreshFilter; +import com.gerritforge.gerrit.plugins.github.group.GitHubGroupsCache; +import com.gerritforge.gerrit.plugins.github.groups.OrganizationStructure; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import com.google.gerrit.util.http.testutil.FakeHttpServletRequest; import com.google.gerrit.util.http.testutil.FakeHttpServletResponse; -import com.gerritforge.gerrit.plugins.github.filters.GitHubGroupCacheRefreshFilter; -import com.gerritforge.gerrit.plugins.github.group.GitHubGroupsCache; -import com.gerritforge.gerrit.plugins.github.groups.OrganizationStructure; import javax.servlet.FilterChain; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletResponse; diff --git a/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilderTest.java b/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilderTest.java index 057079eb..67052bde 100644 --- a/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilderTest.java +++ b/github-plugin/src/test/java/com/gerritforge/gerrit/plugins/github/git/ReplicationRemoteConfigBuilderTest.java @@ -14,9 +14,9 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -import com.google.gerrit.extensions.registration.DynamicItem; import com.gerritforge.gerrit.plugins.github.oauth.GitHubLogin; import com.gerritforge.gerrit.plugins.github.oauth.ScopedProvider; +import com.google.gerrit.extensions.registration.DynamicItem; import com.googlesource.gerrit.plugins.replication.api.ReplicationRemotesApi; import org.eclipse.jgit.lib.Config; import org.junit.Test; diff --git a/github-plugin/web/BUILD b/github-plugin/web/BUILD index 035d9999..4d05e2fc 100644 --- a/github-plugin/web/BUILD +++ b/github-plugin/web/BUILD @@ -1,6 +1,6 @@ +load("@aspect_rules_ts//ts:defs.bzl", "ts_config", "ts_project") +load("@com_googlesource_gerrit_bazlets//js:defs.bzl", "gerrit_js_bundle") load("//tools/js:eslint.bzl", "plugin_eslint") -load("//tools/bzl:js.bzl", "gerrit_js_bundle") -load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project") package_group( name = "visibility", @@ -13,7 +13,7 @@ ts_config( name = "tsconfig", src = "tsconfig.json", deps = [ - "//plugins:tsconfig-plugins-base.json", + "//plugins:tsconfig-plugins-base", ], ) @@ -24,12 +24,9 @@ ts_project( ), incremental = True, out_dir = "_bazel_ts_out", - tsc = "//tools/node_tools:tsc-bin", tsconfig = ":tsconfig", deps = [ - "@plugins_npm//@gerritcodereview/typescript-api", - "@plugins_npm//lit", - "@plugins_npm//rxjs", + "//plugins:node_modules", ], ) diff --git a/github-plugin/web/tsconfig.json b/github-plugin/web/tsconfig.json index c2dd829f..f46a3f03 100644 --- a/github-plugin/web/tsconfig.json +++ b/github-plugin/web/tsconfig.json @@ -2,10 +2,9 @@ "extends": "../../../tsconfig-plugins-base.json", "compilerOptions": { "experimentalDecorators": true, - /* outDir for IDE (overridden by Bazel rule arg) */ - "outDir": "../../../../.ts-out/plugins/github-plugin/ui", + "rootDir": "." }, "include": [ "**/*", ], -} \ No newline at end of file +} diff --git a/github-plugin_plugin_deps.lock.json b/github-plugin_plugin_deps.lock.json new file mode 100644 index 00000000..b690ecd3 --- /dev/null +++ b/github-plugin_plugin_deps.lock.json @@ -0,0 +1,505 @@ +{ + "__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": "THERE_IS_NO_DATA_ONLY_ZUUL", + "__INPUT_ARTIFACTS_HASH": { + "com.google.code.findbugs:jsr305": -313338248, + "com.google.errorprone:error_prone_annotations": 227507220, + "com.google.guava:failureaccess": -1493823684, + "com.google.guava:guava": -2125091860, + "com.google.j2objc:j2objc-annotations": 1772577837, + "com.infradna.tool:bridge-method-annotation": -819508807, + "com.infradna.tool:bridge-method-injector": -1389199084, + "com.sun.mail:javax.mail": -407831084, + "commons-codec:commons-codec": 284109768, + "commons-discovery:commons-discovery": -801148227, + "commons-io:commons-io": 150368282, + "commons-logging:commons-logging": 2056692342, + "javax.activation:activation": 768037292, + "javax.servlet:javax.servlet-api": -908348125, + "org.apache.axis:axis": 1869239221, + "org.apache.axis:axis-jaxrpc": 542743534, + "org.apache.commons:commons-lang3": -2144251182, + "org.apache.httpcomponents:httpclient": 1407535949, + "org.apache.httpcomponents:httpcore": -1485416135, + "org.apache.velocity:velocity-engine-core": -1752169558, + "org.checkerframework:checker-qual": -661903474, + "org.eclipse.mylyn.github:org.eclipse.egit.github.core": 488921978, + "org.kohsuke:github-api": 1963016167, + "org.ow2.asm:asm": -29138462, + "org.ow2.asm:asm-commons": -1100550937, + "org.ow2.asm:asm-tree": -1173992809, + "org.slf4j:slf4j-api": 2145585153, + "repositories": 866997002 + }, + "__RESOLVED_ARTIFACTS_HASH": { + "com.fasterxml.jackson.core:jackson-annotations": 2047807794, + "com.fasterxml.jackson.core:jackson-annotations:jar:sources": 586304415, + "com.fasterxml.jackson.core:jackson-core": -50639062, + "com.fasterxml.jackson.core:jackson-core:jar:sources": 467437297, + "com.fasterxml.jackson.core:jackson-databind": 50084230, + "com.fasterxml.jackson.core:jackson-databind:jar:sources": -1928131750, + "com.infradna.tool:bridge-method-annotation": 518849556, + "com.infradna.tool:bridge-method-annotation:jar:sources": -290100366, + "com.infradna.tool:bridge-method-injector": 972033742, + "com.infradna.tool:bridge-method-injector:jar:sources": -294270624, + "com.sun.mail:javax.mail": 1180599320, + "com.sun.mail:javax.mail:jar:sources": 241319160, + "commons-discovery:commons-discovery": -1823384569, + "commons-discovery:commons-discovery:jar:sources": -198466631, + "javax.activation:activation": -1387662613, + "javax.activation:activation:jar:sources": -848464236, + "org.apache.axis:axis": -1428555424, + "org.apache.axis:axis-jaxrpc": -1444438564, + "org.apache.axis:axis:jar:sources": 690562213, + "org.apache.velocity:velocity-engine-core": -1834104631, + "org.apache.velocity:velocity-engine-core:jar:sources": 1230151997, + "org.eclipse.mylyn.github:org.eclipse.egit.github.core": 1063318691, + "org.jenkins-ci:annotation-indexer": -1872661547, + "org.jenkins-ci:annotation-indexer:jar:sources": 1457598110, + "org.kohsuke:github-api": 1844212523, + "org.kohsuke:github-api:jar:sources": -1632270184 + }, + "artifacts": { + "com.fasterxml.jackson.core:jackson-annotations": { + "shasums": { + "jar": "04e21f94dcfee4b078fa5a5f53047b785aaba69d19de392f616e7a7fe5d3882f", + "sources": "ce8e910f66e0c60d0beec66ccfe308a2426d606c85e67c76a5377dafb52eb4da" + }, + "version": "2.15.2" + }, + "com.fasterxml.jackson.core:jackson-core": { + "shasums": { + "jar": "303c99e82b1faa91a0bae5d8fbeb56f7e2adf9b526a900dd723bf140d62bd4b4", + "sources": "4b29fe878549425194521d5c3270fae13f9c82cfcad639ebffea0963431bef45" + }, + "version": "2.15.2" + }, + "com.fasterxml.jackson.core:jackson-databind": { + "shasums": { + "jar": "0eb2fdad6e40ab8832a78c9b22f58196dd970594e8d3d5a26ead87847c4f3a96", + "sources": "6dafb34ba03f003c998dac3f786bcfd468dfcec39eaf465180bc433ce8566d30" + }, + "version": "2.15.2" + }, + "com.infradna.tool:bridge-method-annotation": { + "shasums": { + "jar": "89175b14fa03dc98db34d2e54d1d91af0cd406fd73aadaae25c8ceb1f0a38e42", + "sources": "dd7d8e91e02fcda0bf046d60748696abe154d6526caf32df400c07a0581691f3" + }, + "version": "1.29" + }, + "com.infradna.tool:bridge-method-injector": { + "shasums": { + "jar": "d841baf0eed294c802190eadd058d8196ebc7f4a90fb3d8f7fc351fec2d4f010", + "sources": "3cf84c8b1e9f84b3b793b0271980c921bbef02ab89e83be59d09409a8a74dd35" + }, + "version": "1.29" + }, + "com.sun.mail:javax.mail": { + "shasums": { + "jar": "45b515e7104944c09e45b9c7bb1ce5dff640486374852dd2b2e80cc3752dfa11", + "sources": "91024fcbc346764ed923ab9cb00ae856b0ca8aa4ff152988d7a7a3349cf49995" + }, + "version": "1.6.2" + }, + "commons-discovery:commons-discovery": { + "shasums": { + "jar": "e5b7d58ae62e5b309d5c0ffa5a5b1d9d1e0f0c4c3cc18d1fe3103fd29f90149d", + "sources": "c7ff18e5004b7e2bd12f5d1987481849a54188f911ec465c47c32e08580b6d7a" + }, + "version": "0.5" + }, + "javax.activation:activation": { + "shasums": { + "jar": "2881c79c9d6ef01c58e62beea13e9d1ac8b8baa16f2fc198ad6e6776defdcdd3", + "sources": "d1ce2ec5b4fa82d2424e38bb4efd75539f87b7e22e8c38c95cef541ef82fb037" + }, + "version": "1.1" + }, + "org.apache.axis:axis": { + "shasums": { + "jar": "05aebb421d0615875b4bf03497e041fe861bf0556c3045d8dda47e29241ffdd3", + "sources": "c8bcdb58243af5a66a4c17e0a61d6ff1b3de6e5f63aff125f83f6cd66cbd07ac" + }, + "version": "1.4" + }, + "org.apache.axis:axis-jaxrpc": { + "shasums": { + "jar": "7fe3f0c10896fb4fdb938117e8c9df5d1947c4c56627bed92d6afb09d1932a0b" + }, + "version": "1.4" + }, + "org.apache.velocity:velocity-engine-core": { + "shasums": { + "jar": "b086cee8fd8183e240b4afcf54fe38ec33dd8eb0da414636e5bf7aa4d9856629", + "sources": "43db55a9df30d2892fc15262cdf9c1794a6d5ec10cdffbde48ff2e737660a667" + }, + "version": "2.3" + }, + "org.eclipse.mylyn.github:org.eclipse.egit.github.core": { + "shasums": { + "jar": "d7cbf75948b34e9dce13a5ebe7af984c220651948860f0b305a0a7a69a762629" + }, + "version": "6.1.0.202203080745-r" + }, + "org.jenkins-ci:annotation-indexer": { + "shasums": { + "jar": "783afc6bc3bf7a559725d9e2cec094697b4163054ed51f0ae0154816f1efb663", + "sources": "a8257ad23c177757b67f7255c4760774272ef7437f5826bd13237412df17484a" + }, + "version": "1.17" + }, + "org.kohsuke:github-api": { + "shasums": { + "jar": "97ddfe4bd6989719bdfb3227b753719669f8b93cbcb3c80edd02094785463f22", + "sources": "0cca09c60248372f2f4a45b6b34d639c51fb776f854ef4f36d67a1ef62f0bd04" + }, + "version": "1.316" + } + }, + "dependencies": { + "com.fasterxml.jackson.core:jackson-databind": [ + "com.fasterxml.jackson.core:jackson-annotations", + "com.fasterxml.jackson.core:jackson-core" + ], + "com.infradna.tool:bridge-method-annotation": [ + "org.jenkins-ci:annotation-indexer" + ], + "com.infradna.tool:bridge-method-injector": [ + "com.infradna.tool:bridge-method-annotation" + ], + "com.sun.mail:javax.mail": [ + "javax.activation:activation" + ], + "org.kohsuke:github-api": [ + "com.fasterxml.jackson.core:jackson-databind" + ] + }, + "packages": { + "com.fasterxml.jackson.core:jackson-annotations": [ + "com.fasterxml.jackson.annotation" + ], + "com.fasterxml.jackson.core:jackson-core": [ + "com.fasterxml.jackson.core", + "com.fasterxml.jackson.core.async", + "com.fasterxml.jackson.core.base", + "com.fasterxml.jackson.core.exc", + "com.fasterxml.jackson.core.filter", + "com.fasterxml.jackson.core.format", + "com.fasterxml.jackson.core.io", + "com.fasterxml.jackson.core.io.doubleparser", + "com.fasterxml.jackson.core.io.schubfach", + "com.fasterxml.jackson.core.json", + "com.fasterxml.jackson.core.json.async", + "com.fasterxml.jackson.core.sym", + "com.fasterxml.jackson.core.type", + "com.fasterxml.jackson.core.util" + ], + "com.fasterxml.jackson.core:jackson-databind": [ + "com.fasterxml.jackson.databind", + "com.fasterxml.jackson.databind.annotation", + "com.fasterxml.jackson.databind.cfg", + "com.fasterxml.jackson.databind.deser", + "com.fasterxml.jackson.databind.deser.impl", + "com.fasterxml.jackson.databind.deser.std", + "com.fasterxml.jackson.databind.exc", + "com.fasterxml.jackson.databind.ext", + "com.fasterxml.jackson.databind.introspect", + "com.fasterxml.jackson.databind.jdk14", + "com.fasterxml.jackson.databind.json", + "com.fasterxml.jackson.databind.jsonFormatVisitors", + "com.fasterxml.jackson.databind.jsonschema", + "com.fasterxml.jackson.databind.jsontype", + "com.fasterxml.jackson.databind.jsontype.impl", + "com.fasterxml.jackson.databind.module", + "com.fasterxml.jackson.databind.node", + "com.fasterxml.jackson.databind.ser", + "com.fasterxml.jackson.databind.ser.impl", + "com.fasterxml.jackson.databind.ser.std", + "com.fasterxml.jackson.databind.type", + "com.fasterxml.jackson.databind.util", + "com.fasterxml.jackson.databind.util.internal" + ], + "com.infradna.tool:bridge-method-annotation": [ + "com.infradna.tool.bridge_method_injector" + ], + "com.infradna.tool:bridge-method-injector": [ + "com.infradna.tool.bridge_method_injector" + ], + "com.sun.mail:javax.mail": [ + "com.sun.mail.auth", + "com.sun.mail.handlers", + "com.sun.mail.iap", + "com.sun.mail.imap", + "com.sun.mail.imap.protocol", + "com.sun.mail.pop3", + "com.sun.mail.smtp", + "com.sun.mail.util", + "com.sun.mail.util.logging", + "javax.mail", + "javax.mail.event", + "javax.mail.internet", + "javax.mail.search", + "javax.mail.util" + ], + "commons-discovery:commons-discovery": [ + "org.apache.commons.discovery", + "org.apache.commons.discovery.ant", + "org.apache.commons.discovery.jdk", + "org.apache.commons.discovery.log", + "org.apache.commons.discovery.resource", + "org.apache.commons.discovery.resource.classes", + "org.apache.commons.discovery.resource.names", + "org.apache.commons.discovery.tools" + ], + "javax.activation:activation": [ + "com.sun.activation.registries", + "com.sun.activation.viewers", + "javax.activation" + ], + "org.apache.axis:axis": [ + "org.apache.axis", + "org.apache.axis.attachments", + "org.apache.axis.client", + "org.apache.axis.client.async", + "org.apache.axis.collections", + "org.apache.axis.components.compiler", + "org.apache.axis.components.encoding", + "org.apache.axis.components.image", + "org.apache.axis.components.jms", + "org.apache.axis.components.logger", + "org.apache.axis.components.net", + "org.apache.axis.components.script", + "org.apache.axis.components.threadpool", + "org.apache.axis.components.uuid", + "org.apache.axis.configuration", + "org.apache.axis.constants", + "org.apache.axis.deployment.wsdd", + "org.apache.axis.deployment.wsdd.providers", + "org.apache.axis.description", + "org.apache.axis.encoding", + "org.apache.axis.encoding.ser", + "org.apache.axis.encoding.ser.castor", + "org.apache.axis.enum", + "org.apache.axis.handlers", + "org.apache.axis.handlers.http", + "org.apache.axis.handlers.soap", + "org.apache.axis.holders", + "org.apache.axis.i18n", + "org.apache.axis.management", + "org.apache.axis.management.jmx", + "org.apache.axis.message", + "org.apache.axis.monitor", + "org.apache.axis.providers", + "org.apache.axis.providers.java", + "org.apache.axis.schema", + "org.apache.axis.security", + "org.apache.axis.security.servlet", + "org.apache.axis.security.simple", + "org.apache.axis.server", + "org.apache.axis.session", + "org.apache.axis.soap", + "org.apache.axis.strategies", + "org.apache.axis.transport.http", + "org.apache.axis.transport.java", + "org.apache.axis.transport.jms", + "org.apache.axis.transport.local", + "org.apache.axis.transport.mail", + "org.apache.axis.types", + "org.apache.axis.utils", + "org.apache.axis.utils.bytecode", + "org.apache.axis.utils.cache", + "org.apache.axis.wsdl", + "org.apache.axis.wsdl.fromJava", + "org.apache.axis.wsdl.gen", + "org.apache.axis.wsdl.symbolTable", + "org.apache.axis.wsdl.toJava" + ], + "org.apache.axis:axis-jaxrpc": [ + "javax.xml.messaging", + "javax.xml.namespace", + "javax.xml.rpc", + "javax.xml.rpc.encoding", + "javax.xml.rpc.handler", + "javax.xml.rpc.handler.soap", + "javax.xml.rpc.holders", + "javax.xml.rpc.server", + "javax.xml.rpc.soap" + ], + "org.apache.velocity:velocity-engine-core": [ + "org.apache.velocity", + "org.apache.velocity.app", + "org.apache.velocity.app.event", + "org.apache.velocity.app.event.implement", + "org.apache.velocity.context", + "org.apache.velocity.exception", + "org.apache.velocity.io", + "org.apache.velocity.runtime", + "org.apache.velocity.runtime.directive", + "org.apache.velocity.runtime.directive.contrib", + "org.apache.velocity.runtime.parser", + "org.apache.velocity.runtime.parser.node", + "org.apache.velocity.runtime.resource", + "org.apache.velocity.runtime.resource.loader", + "org.apache.velocity.runtime.resource.util", + "org.apache.velocity.runtime.visitor", + "org.apache.velocity.shaded.commons.io", + "org.apache.velocity.util", + "org.apache.velocity.util.introspection" + ], + "org.eclipse.mylyn.github:org.eclipse.egit.github.core": [ + "org.eclipse.egit.github.core", + "org.eclipse.egit.github.core.client", + "org.eclipse.egit.github.core.event", + "org.eclipse.egit.github.core.service", + "org.eclipse.egit.github.core.util" + ], + "org.jenkins-ci:annotation-indexer": [ + "org.jvnet.hudson.annotation_indexer" + ], + "org.kohsuke:github-api": [ + "org.kohsuke.github", + "org.kohsuke.github.authorization", + "org.kohsuke.github.connector", + "org.kohsuke.github.example.dataobject", + "org.kohsuke.github.extras", + "org.kohsuke.github.extras.authorization", + "org.kohsuke.github.extras.okhttp3", + "org.kohsuke.github.function", + "org.kohsuke.github.internal" + ] + }, + "repositories": { + "https://repo1.maven.org/maven2/": [ + "com.fasterxml.jackson.core:jackson-annotations", + "com.fasterxml.jackson.core:jackson-annotations:jar:sources", + "com.fasterxml.jackson.core:jackson-core", + "com.fasterxml.jackson.core:jackson-core:jar:sources", + "com.fasterxml.jackson.core:jackson-databind", + "com.fasterxml.jackson.core:jackson-databind:jar:sources", + "com.infradna.tool:bridge-method-annotation", + "com.infradna.tool:bridge-method-annotation:jar:sources", + "com.infradna.tool:bridge-method-injector", + "com.infradna.tool:bridge-method-injector:jar:sources", + "com.sun.mail:javax.mail", + "com.sun.mail:javax.mail:jar:sources", + "commons-discovery:commons-discovery", + "commons-discovery:commons-discovery:jar:sources", + "javax.activation:activation", + "javax.activation:activation:jar:sources", + "org.apache.axis:axis", + "org.apache.axis:axis-jaxrpc", + "org.apache.axis:axis:jar:sources", + "org.apache.velocity:velocity-engine-core", + "org.apache.velocity:velocity-engine-core:jar:sources", + "org.eclipse.mylyn.github:org.eclipse.egit.github.core", + "org.jenkins-ci:annotation-indexer", + "org.jenkins-ci:annotation-indexer:jar:sources", + "org.kohsuke:github-api", + "org.kohsuke:github-api:jar:sources" + ], + "https://repo.eclipse.org/content/repositories/egit-releases/": [ + "com.fasterxml.jackson.core:jackson-annotations", + "com.fasterxml.jackson.core:jackson-annotations:jar:sources", + "com.fasterxml.jackson.core:jackson-core", + "com.fasterxml.jackson.core:jackson-core:jar:sources", + "com.fasterxml.jackson.core:jackson-databind", + "com.fasterxml.jackson.core:jackson-databind:jar:sources", + "com.infradna.tool:bridge-method-annotation", + "com.infradna.tool:bridge-method-annotation:jar:sources", + "com.infradna.tool:bridge-method-injector", + "com.infradna.tool:bridge-method-injector:jar:sources", + "com.sun.mail:javax.mail", + "com.sun.mail:javax.mail:jar:sources", + "commons-discovery:commons-discovery", + "commons-discovery:commons-discovery:jar:sources", + "javax.activation:activation", + "javax.activation:activation:jar:sources", + "org.apache.axis:axis", + "org.apache.axis:axis-jaxrpc", + "org.apache.axis:axis:jar:sources", + "org.apache.velocity:velocity-engine-core", + "org.apache.velocity:velocity-engine-core:jar:sources", + "org.eclipse.mylyn.github:org.eclipse.egit.github.core", + "org.jenkins-ci:annotation-indexer", + "org.jenkins-ci:annotation-indexer:jar:sources", + "org.kohsuke:github-api", + "org.kohsuke:github-api:jar:sources" + ], + "https://repo.jenkins-ci.org/releases/": [ + "com.fasterxml.jackson.core:jackson-annotations", + "com.fasterxml.jackson.core:jackson-annotations:jar:sources", + "com.fasterxml.jackson.core:jackson-core", + "com.fasterxml.jackson.core:jackson-core:jar:sources", + "com.fasterxml.jackson.core:jackson-databind", + "com.fasterxml.jackson.core:jackson-databind:jar:sources", + "com.infradna.tool:bridge-method-annotation", + "com.infradna.tool:bridge-method-annotation:jar:sources", + "com.infradna.tool:bridge-method-injector", + "com.infradna.tool:bridge-method-injector:jar:sources", + "com.sun.mail:javax.mail", + "com.sun.mail:javax.mail:jar:sources", + "commons-discovery:commons-discovery", + "commons-discovery:commons-discovery:jar:sources", + "javax.activation:activation", + "javax.activation:activation:jar:sources", + "org.apache.axis:axis", + "org.apache.axis:axis-jaxrpc", + "org.apache.axis:axis:jar:sources", + "org.apache.velocity:velocity-engine-core", + "org.apache.velocity:velocity-engine-core:jar:sources", + "org.eclipse.mylyn.github:org.eclipse.egit.github.core", + "org.jenkins-ci:annotation-indexer", + "org.jenkins-ci:annotation-indexer:jar:sources", + "org.kohsuke:github-api", + "org.kohsuke:github-api:jar:sources" + ] + }, + "services": { + "com.fasterxml.jackson.core:jackson-core": { + "com.fasterxml.jackson.core.JsonFactory": [ + "com.fasterxml.jackson.core.JsonFactory" + ] + }, + "com.fasterxml.jackson.core:jackson-core:jar:sources": { + "com.fasterxml.jackson.core.JsonFactory": [ + "com.fasterxml.jackson.core.JsonFactory" + ] + }, + "com.fasterxml.jackson.core:jackson-databind": { + "com.fasterxml.jackson.core.ObjectCodec": [ + "com.fasterxml.jackson.databind.ObjectMapper" + ] + }, + "com.fasterxml.jackson.core:jackson-databind:jar:sources": { + "com.fasterxml.jackson.core.ObjectCodec": [ + "com.fasterxml.jackson.databind.ObjectMapper" + ] + }, + "com.sun.mail:javax.mail": { + "javax.mail.Provider": [ + "com.sun.mail.imap.IMAPProvider", + "com.sun.mail.imap.IMAPSSLProvider", + "com.sun.mail.pop3.POP3Provider", + "com.sun.mail.pop3.POP3SSLProvider", + "com.sun.mail.smtp.SMTPProvider", + "com.sun.mail.smtp.SMTPSSLProvider" + ] + }, + "com.sun.mail:javax.mail:jar:sources": { + "javax.mail.Provider": [ + "com.sun.mail.imap.IMAPProvider", + "com.sun.mail.imap.IMAPSSLProvider", + "com.sun.mail.pop3.POP3Provider", + "com.sun.mail.pop3.POP3SSLProvider", + "com.sun.mail.smtp.SMTPProvider", + "com.sun.mail.smtp.SMTPSSLProvider" + ] + }, + "org.jenkins-ci:annotation-indexer": { + "javax.annotation.processing.Processor": [ + "org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl" + ] + } + }, + "version": "3" +} diff --git a/java_library_without_header_compilation.bzl b/java_library_without_header_compilation.bzl deleted file mode 100644 index a1250d08..00000000 --- a/java_library_without_header_compilation.bzl +++ /dev/null @@ -1,30 +0,0 @@ -# See https://github.com/bazelbuild/bazel/issues/12837 -# for workaround suggestion for incompatibility between -# Bazel Turbine processor and Lombok library. - -def _java_header_compilation_transition(settings, attr): - _ignore = (settings, attr) - return {"//command_line_option:java_header_compilation": "False"} - -java_header_compilation_transition = transition( - implementation = _java_header_compilation_transition, - inputs = [], - outputs = ["//command_line_option:java_header_compilation"], -) - -def _java_library_without_header_compilation(ctx): - return [java_common.merge([d[JavaInfo] for d in ctx.attr.dep])] - -java_library_without_header_compilation = rule( - implementation = _java_library_without_header_compilation, - attrs = { - "dep": attr.label( - providers = [JavaInfo], - mandatory = True, - cfg = java_header_compilation_transition, - ), - "_allowlist_function_transition": attr.label( - default = "@bazel_tools//tools/allowlists/function_transition_allowlist", - ), - }, -)