diff --git a/MODULE.bazel b/MODULE.bazel index 67ebacbc4c0..76cf41225ee 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -128,3 +128,620 @@ use_repo( truth = "com_google_truth_truth", truth8 = "com_google_truth_extensions_truth_java8_extension", ) + +bazel_dep(name = "rules_go", version = "0.50.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.38.0", repo_name = "bazel_gazelle") + +go_repository = use_repo_rule("@bazel_gazelle//:deps.bzl", "go_repository") +# gRPC is used to generate Go from proto in the aspect tests, in +# //aspect/testing/tests/src/com/google/idea/blaze/aspect/go/... +go_repository( + name = "org_golang_google_grpc", + build_file_proto_mode = "disable", + importpath = "google.golang.org/grpc", + sum = "h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk=", + version = "v1.27.1", +) + +http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +# Long-lived download links available at: https://www.jetbrains.com/intellij-repository/releases + +# The plugin api for intellij_ce_2022_3. This is required to build IJwB and run integration tests. +http_archive( + name = "intellij_ce_2022_3", + build_file = "@//intellij_platform_sdk:BUILD.idea223", + sha256 = "f6ea9aee6dec73b55ea405b37402394095be3c658d1c2707a8f30ac848974eac", + url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2022.3/ideaIC-2022.3.zip", +) + +# The plugin api for intellij_ce_2023_1. This is required to build IJwB and run integration tests. +IC_231_SHA = "4e1dbd508a3dc6394735ae864034aa3598d16ddd568c3de2a9d7a386f3508fff" + +IC_231_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2023.1.7/ideaIC-2023.1.7.zip" + +http_archive( + name = "intellij_ce_2023_1", + build_file = "@//intellij_platform_sdk:BUILD.idea231", + sha256 = IC_231_SHA, + url = IC_231_URL, +) + +# The plugin api for intellij_ce_2023_2. This is required to build IJwB and run integration tests. +IC_232_SHA = "781a6e6ef0094e923a8719db716f5d3f6c3316209123c3e94b0e41c8100e55c8" + +IC_232_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2023.2.7/ideaIC-2023.2.7.zip" + +http_archive( + name = "intellij_ce_2023_2", + build_file = "@//intellij_platform_sdk:BUILD.idea232", + sha256 = IC_232_SHA, + url = IC_232_URL, +) + +# The plugin api for intellij_ce_2023_2. This is required to build IJwB and run integration tests. +IC_233_SHA = "bbd5c853b0bda2ad07d3d13f49371c8572266dfdfc0ee8c97657b4b46307a9a9" + +IC_233_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2023.3.7/ideaIC-2023.3.7.zip" + +http_archive( + name = "intellij_ce_2023_3", + build_file = "@//intellij_platform_sdk:BUILD.idea233", + sha256 = IC_233_SHA, + url = IC_233_URL, +) + +# The plugin api for intellij_ce_2024_1. This is required to build IJwB and run integration tests. +IC_241_SHA = "c8d4e8f6114af55286d43f69192c5699a61d0140bb148b49e87b08f42c602e9a" + +IC_241_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2024.1.6/ideaIC-2024.1.6.zip" + +http_archive( + name = "intellij_ce_2024_1", + build_file = "@//intellij_platform_sdk:BUILD.idea241", + sha256 = IC_241_SHA, + url = IC_241_URL, +) + +# The plugin api for intellij_ce_2024_2. This is required to build IJwB and run integration tests. +IC_242_SHA = "e9ad86b7bbbfac801a863fa914714549ea5010968b27846de481621afbde9f1e" + +IC_242_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2024.2.1/ideaIC-2024.2.1.zip" + +http_archive( + name = "intellij_ce_2024_2", + build_file = "@//intellij_platform_sdk:BUILD.idea242", + sha256 = IC_242_SHA, + url = IC_242_URL, +) + +# The plugin api for intellij_ue_2022_3. This is required to run UE-specific integration tests. +http_archive( + name = "intellij_ue_2022_3", + build_file = "@//intellij_platform_sdk:BUILD.ue223", + sha256 = "0b17ea16e70290d912b6be246460907643c23f33ae2c22331084818025c2b297", + url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2022.3/ideaIU-2022.3.zip", +) + +# The plugin api for intellij_ue_2023_1. This is required to run UE-specific integration tests. +IU_231_SHA = "46900f8b8aa65a4b522e2b7eb365337e836bc7c49b00b23b47860170f5b95c07" + +IU_231_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2023.1.7/ideaIU-2023.1.7.zip" + +http_archive( + name = "intellij_ue_2023_1", + build_file = "@//intellij_platform_sdk:BUILD.ue231", + sha256 = IU_231_SHA, + url = IU_231_URL, +) + +# The plugin api for intellij_ue_2023_2. This is required to run UE-specific integration tests. +IU_232_SHA = "1656b955207eb526db2b5b08a1d32e21440699e55fd21f7337f22e462c0bc9ec" + +IU_232_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2023.2.7/ideaIU-2023.2.7.zip" + +http_archive( + name = "intellij_ue_2023_2", + build_file = "@//intellij_platform_sdk:BUILD.ue232", + sha256 = IU_232_SHA, + url = IU_232_URL, +) + +IU_233_SHA = "d79751726a42d5135c1e1220a2b87ce632f7cf78cc5576840b7d06afc9a7fd74" + +IU_233_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2023.3.7/ideaIU-2023.3.7.zip" + +http_archive( + name = "intellij_ue_2023_3", + build_file = "@//intellij_platform_sdk:BUILD.ue233", + sha256 = IU_233_SHA, + url = IU_233_URL, +) + +IU_241_SHA = "5041e22af26b2445dd69fc4690e41ede2fd1b7567e81c3dd0d035430ccf07cd9" + +IU_241_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2024.1.6/ideaIU-2024.1.6.zip" + +http_archive( + name = "intellij_ue_2024_1", + build_file = "@//intellij_platform_sdk:BUILD.ue241", + sha256 = IU_241_SHA, + url = IU_241_URL, +) + +IU_242_SHA = "4a6fe742af9b7adb038ee13a4bf9abccf86f2f545610c9b8819daa5814740800" + +IU_242_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2024.2.1/ideaIU-2024.2.1.zip" + +http_archive( + name = "intellij_ue_2024_2", + build_file = "@//intellij_platform_sdk:BUILD.ue242", + sha256 = IU_242_SHA, + url = IU_242_URL, +) + +# The plugin api for clion_2022_3. This is required to build CLwB\, and run integration tests. +http_archive( + name = "clion_2022_3", + build_file = "@//intellij_platform_sdk:BUILD.clion223", + sha256 = "5c248465a99f7286e7863ccc4fbd6772af890b57d71a02690e20031aa16d7957", + url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2022.3/clion-2022.3.zip", +) + +# The plugin api for clion_2023_1. This is required to build CLwB\, and run integration tests. +CLION_231_SHA = "2e94bfda121f54f96b7faf1a4df2da50d394c6ae46da6e98f37a731e2b50b189" + +CLION_231_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2023.1.7/clion-2023.1.7.zip" + +http_archive( + name = "clion_2023_1", + build_file = "@//intellij_platform_sdk:BUILD.clion231", + sha256 = CLION_231_SHA, + url = CLION_231_URL, +) + +# The plugin api for clion_2023_2. This is required to build CLwB\, and run integration tests. +CLION_232_SHA = "1bb67402b98a479a6eaab6a8e434988bbbc9c87442197788aa2c1dba5a328df0" + +CLION_232_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2023.2.4/clion-2023.2.4.zip" + +http_archive( + name = "clion_2023_2", + build_file = "@//intellij_platform_sdk:BUILD.clion232", + sha256 = CLION_232_SHA, + url = CLION_232_URL, +) + +CLION_233_SHA = "2ac8c3b89bb31e6d3644c3b06f50b8963370e623736d2900baad8225c6d52359" + +CLION_233_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2023.3.5/clion-2023.3.5.zip" + +http_archive( + name = "clion_2023_3", + build_file = "@//intellij_platform_sdk:BUILD.clion233", + sha256 = CLION_233_SHA, + url = CLION_233_URL, +) + +CLION_241_SHA = "f022c54f76667710f234e27befd68c7628a6143faada1090c6c42f140b91db35" + +CLION_241_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2024.1.5/clion-2024.1.5.zip" + +http_archive( + name = "clion_2024_1", + build_file = "@//intellij_platform_sdk:BUILD.clion241", + sha256 = CLION_241_SHA, + url = CLION_241_URL, +) + +CLION_242_SHA = "a1dcbcf2d8fd926d4100cad90b15a70f59299cdec6861555dab7b03960ef57bb" + +CLION_242_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2024.2.1/clion-2024.2.1.zip" + +http_archive( + name = "clion_2024_2", + build_file = "@//intellij_platform_sdk:BUILD.clion242", + sha256 = CLION_242_SHA, + url = CLION_242_URL, +) + +DEVKIT_BUILD_FILE = """ +java_import( + name = "devkit", + jars = ["devkit/lib/devkit.jar"], + visibility = ["//visibility:public"], +) +""" + +DEVKIT_233_SHA = "de6c1660d9744c2c10f26837debfa1256c0b87720eb506966a94cbba1a8a917f" + +DEVKIT_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/DevKit/233.15325.26/DevKit-233.15325.26.zip" + +http_archive( + name = "devkit_2023_3", + build_file_content = DEVKIT_BUILD_FILE, + sha256 = DEVKIT_233_SHA, + url = DEVKIT_233_URL, +) + +DEVKIT_241_SHA = "039c34d683b995a79ef46b4899413bbd80ab622aec701d0b269f865033e7ff7d" + +DEVKIT_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/DevKit/241.18968.39/DevKit-241.18968.39.zip" + +http_archive( + name = "devkit_2024_1", + build_file_content = DEVKIT_BUILD_FILE, + sha256 = DEVKIT_241_SHA, + url = DEVKIT_241_URL, +) + +DEVKIT_242_SHA = "bf72f615b34fe07d7ba65ee5fa22f0e02d14b619f6bce4cd68de488f768ccde4" + +DEVKIT_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/DevKit/242.21829.142/DevKit-242.21829.142.zip" + +http_archive( + name = "devkit_2024_2", + build_file_content = DEVKIT_BUILD_FILE, + sha256 = DEVKIT_242_SHA, + url = DEVKIT_242_URL, +) + +_PYTHON_CE_BUILD_FILE = """ +java_import( + name = "python", + jars = ["python-ce/lib/python-ce.jar"], + visibility = ["//visibility:public"], +) +filegroup( + name = "python_helpers", + srcs = glob(["python-ce/helpers/**/*"]), + visibility = ["//visibility:public"], +) +""" + +#TODO(ymoh): remove with the removal of 2021.1 Python plugin +# Python plugin for IntelliJ CE. Required at compile-time for python-specific features. +http_archive( + name = "python_2021_1", + build_file_content = _PYTHON_CE_BUILD_FILE, + sha256 = "7d16cc9bf80c9e2c26d55d55564c1c174583a5e6900e6b7f13d5663275b07644", + url = "https://plugins.jetbrains.com/files/7322/125352/python-ce-211.7628.24.zip", +) + +http_archive( + name = "python_2022_3", + build_file_content = _PYTHON_CE_BUILD_FILE, + sha256 = "65db7c364a3f1756cf07fb161ff4eb67fd8f8612a8c3da812b2f9ba5b2d6e13d", + url = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/223.7571.182/PythonCore-223.7571.182.zip", +) + +PYTHON_PLUGIN_231_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/231.9225.4/PythonCore-231.9225.4.zip" + +PYTHON_PLUGIN_231_SHA = "bb9fe55fc483b4da1f6062c764ebd076d0de9f913c924db295f2bd2f05353777" + +http_archive( + name = "python_2023_1", + build_file_content = _PYTHON_CE_BUILD_FILE, + sha256 = PYTHON_PLUGIN_231_SHA, + url = PYTHON_PLUGIN_231_URL, +) + +PYTHON_PLUGIN_232_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/232.10300.40/PythonCore-232.10300.40.zip" + +PYTHON_PLUGIN_232_SHA = "eab4b343491772123cd7daa4c3924d81de29ecd3a74495679216c28cc1bd0005" + +http_archive( + name = "python_2023_2", + build_file_content = _PYTHON_CE_BUILD_FILE, + sha256 = PYTHON_PLUGIN_232_SHA, + url = PYTHON_PLUGIN_232_URL, +) + +PYTHON_PLUGIN_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/233.14808.12/PythonCore-233.14808.12.zip" + +PYTHON_PLUGIN_233_SHA = "ce1c20372e558bc59076674eafc1a7fc55a3a3606116fd20f64032c02136091b" + +http_archive( + name = "python_2023_3", + build_file_content = _PYTHON_CE_BUILD_FILE, + sha256 = PYTHON_PLUGIN_233_SHA, + url = PYTHON_PLUGIN_233_URL, +) + +PYTHON_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/241.18034.55/PythonCore-241.18034.55.zip" + +PYTHON_PLUGIN_241_SHA = "b315d56176463a5f44c8a2dbdcbd528126f5b8a851f82d328c51fd66f62170c1" + +http_archive( + name = "python_2024_1", + build_file_content = _PYTHON_CE_BUILD_FILE, + sha256 = PYTHON_PLUGIN_241_SHA, + url = PYTHON_PLUGIN_241_URL, +) + +_PYTHON_CE_242_BUILD_FILE = """ +java_import( + name = "python", + jars = glob(["python-ce/lib/*.jar", "python-ce/lib/modules/*.jar"]), + visibility = ["//visibility:public"], +) +filegroup( + name = "python_helpers", + srcs = glob(["python-ce/helpers/**/*"]), + visibility = ["//visibility:public"], +) +""" + +PYTHON_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/242.21829.142/PythonCore-242.21829.142.zip" + +PYTHON_PLUGIN_242_SHA = "0feb08602df8bb5146222763f44a5da44600c06d98d70a3998b3b79447d46a49" + +http_archive( + name = "python_2024_2", + build_file_content = _PYTHON_CE_242_BUILD_FILE, + sha256 = PYTHON_PLUGIN_242_SHA, + url = PYTHON_PLUGIN_242_URL, +) + +_GO_BUILD_FILE_223 = """ +java_import( + name = "go", + jars = glob(["go-plugin/lib/*.jar"]), + visibility = ["//visibility:public"], +) +""" + +http_archive( + name = "go_2022_3", + build_file_content = _GO_BUILD_FILE_223, + sha256 = "11d30e00aa21fc8c7aa47df3743c0180058556cbb73292c712e151a0c3d59908", + url = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/223.7571.182/org.jetbrains.plugins.go-223.7571.182.zip", +) + +GO_PLUGIN_231_SHA = "a8d277125ec1f6a2ba0190a7c456d6c39057e563596874ec432a8f278b3d6976" + +GO_PLUGIN_231_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/231.9392.1/org.jetbrains.plugins.go-231.9392.1.zip" + +http_archive( + name = "go_2023_1", + build_file_content = _GO_BUILD_FILE_223, + sha256 = GO_PLUGIN_231_SHA, + url = GO_PLUGIN_231_URL, +) + +GO_PLUGIN_232_SHA = "6682325b13d66b716fc9bc719821f3f7bad16f21ac4504cc4656265fee74ceb4" + +GO_PLUGIN_232_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/232.10203.2/org.jetbrains.plugins.go-232.10203.2.zip" + +http_archive( + name = "go_2023_2", + build_file_content = _GO_BUILD_FILE_223, + sha256 = GO_PLUGIN_232_SHA, + url = GO_PLUGIN_232_URL, +) + +GO_PLUGIN_233_SHA = "6ec43880bfbedaead564def4b9f40baa13de4167d7d7c7c0522f7e7c5dd77a77" + +GO_PLUGIN_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/233.15026.9/org.jetbrains.plugins.go-233.15026.9.zip" + +http_archive( + name = "go_2023_3", + build_file_content = _GO_BUILD_FILE_223, + sha256 = GO_PLUGIN_233_SHA, + url = GO_PLUGIN_233_URL, +) + +GO_PLUGIN_241_SHA = "18f9b114a372730e3b869cc3bf99bc3e019611571aa0edfd0517f1d10b83e422" + +GO_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/241.18968.26/org.jetbrains.plugins.go-241.18968.26.zip" + +http_archive( + name = "go_2024_1", + build_file_content = _GO_BUILD_FILE_223, + sha256 = GO_PLUGIN_241_SHA, + url = GO_PLUGIN_241_URL, +) + +_GO_BUILD_FILE_242 = """ +java_import( + name = "go", + jars = glob(["go-plugin/lib/*.jar", "go-plugin/lib/modules/*.jar"]), + visibility = ["//visibility:public"], +) +""" + +GO_PLUGIN_242_SHA = "5bc103a659b6bddaef19c788dbfbabcb96417eb132009b040ad6f91bde3e87d1" + +GO_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/242.21829.142/org.jetbrains.plugins.go-242.21829.142.zip" + +http_archive( + name = "go_2024_2", + build_file_content = _GO_BUILD_FILE_242, + sha256 = GO_PLUGIN_242_SHA, + url = GO_PLUGIN_242_URL, +) + +_SCALA_BUILD_FILE = """ +java_import( + name = "scala", + jars = glob(["Scala/lib/*.jar"]), + visibility = ["//visibility:public"], +) +""" + +http_archive( + name = "scala_2022_3", + build_file_content = _SCALA_BUILD_FILE, + sha256 = "f028ac7263433c8692d9d4c92aaba9e114fc75f6299d4d86817db371409f74f3", + url = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2022.3.13/org.intellij.scala-2022.3.13.zip", +) + +SCALA_PLUGIN_231_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2023.1.25/org.intellij.scala-2023.1.25.zip" + +SCALA_PLUGIN_231_SHA = "b45dbb95ed5a0001f11638e7f03dd858d9e243994ca554a64e1df6b7290b2b81" + +http_archive( + name = "scala_2023_1", + build_file_content = _SCALA_BUILD_FILE, + sha256 = SCALA_PLUGIN_231_SHA, + url = SCALA_PLUGIN_231_URL, +) + +SCALA_PLUGIN_232_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2023.2.30/org.intellij.scala-2023.2.30.zip" + +SCALA_PLUGIN_232_SHA = "16896d256bea7f84343dbfec11808c8d9f861fdc99b0ca26d2eeb5d510398ba8" + +http_archive( + name = "scala_2023_2", + build_file_content = _SCALA_BUILD_FILE, + sha256 = SCALA_PLUGIN_232_SHA, + url = SCALA_PLUGIN_232_URL, +) + +SCALA_PLUGIN_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2023.3.30/org.intellij.scala-2023.3.30.zip" + +SCALA_PLUGIN_233_SHA = "0c7ffd6f642face7d15d0f8aaa40430041c8a3d00d3b213659d17146f64e2052" + +http_archive( + name = "scala_2023_3", + build_file_content = _SCALA_BUILD_FILE, + sha256 = SCALA_PLUGIN_233_SHA, + url = SCALA_PLUGIN_233_URL, +) + +SCALA_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2024.1.25/org.intellij.scala-2024.1.25.zip" + +SCALA_PLUGIN_241_SHA = "3d550756eab61858618dc7d695283cd0569c47b680bf823f2d46fd9c130f5422" + +http_archive( + name = "scala_2024_1", + build_file_content = _SCALA_BUILD_FILE, + sha256 = SCALA_PLUGIN_241_SHA, + url = SCALA_PLUGIN_241_URL, +) + +SCALA_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2024.2.25/org.intellij.scala-2024.2.25.zip" + +SCALA_PLUGIN_242_SHA = "9358ac824310fc13d7336c46a2c7e7bf17984c6f4ff75d4986ea2c89901418aa" + +http_archive( + name = "scala_2024_2", + build_file_content = _SCALA_BUILD_FILE, + sha256 = SCALA_PLUGIN_242_SHA, + url = SCALA_PLUGIN_242_URL, +) + +_TOML_BUILD_FILE = """ +java_import( + name = "toml", + jars = ["toml/lib/toml.jar"], + visibility = ["//visibility:public"], +) +""" + +TOML_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.toml.lang/241.17011.8/org.toml.lang-241.17011.8.zip" + +TOML_PLUGIN_241_SHA = "17572527d9aa2f31cd9fa670de68054cb586af3aa2eca9cb204b0f33043e9839" + +# TOML required by Python since 241.13688.18 +http_archive( + name = "toml_2024_1", + build_file_content = _TOML_BUILD_FILE, + sha256 = TOML_PLUGIN_241_SHA, + url = TOML_PLUGIN_241_URL, +) + +TOML_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.toml.lang/242.20224.155/org.toml.lang-242.20224.155.zip" + +TOML_PLUGIN_242_SHA = "96bd1964b5b4bc7f778c87dddee11b8f7e3d08559a2a72e52909ce4d31be2d9c" + +# TOML required by Python since 242.13688.18 +http_archive( + name = "toml_2024_2", + build_file_content = _TOML_BUILD_FILE, + sha256 = TOML_PLUGIN_242_SHA, + url = TOML_PLUGIN_242_URL, +) + +# The plugin api for android_studio_dev android_studio. This is required to build ASwB and run integration tests +http_archive( + name = "android_studio_dev", + build_file = "@//intellij_platform_sdk:BUILD.android_studiodev", + sha256 = "cb3f0494220f92dd85399adfb8655a1a2bd81b238d26e63a8bbd8bde95a0fccf", + url = "https://android-build", +) + +# The plugin api for android_studio_2023_2 android_studio. This is required to build ASwB and run integration tests +http_archive( + name = "android_studio_2023_2", + build_file = "@//intellij_platform_sdk:BUILD.android_studio232", + sha256 = "f2ccc445fb5c87525627ae81725241ab90d9707d577f5732563d3c5a49cba12f", + url = "https://dl.google.com/dl/android/studio/ide-zips/2023.2.1.14/android-studio-2023.2.1.14-linux.tar.gz", +) + +# The plugin api for android_studio_2023_1 android_studio. This is required to build ASwB and run integration tests +http_archive( + name = "android_studio_2023_1", + build_file = "@//intellij_platform_sdk:BUILD.android_studio231", + sha256 = "139d0dbb4909353b68fbf55c09b6d31a34512044a9d4f02ce0f1a9accca128f9", + url = "https://dl.google.com/dl/android/studio/ide-zips/2023.1.1.28/android-studio-2023.1.1.28-linux.tar.gz", +) + +# The plugin api for android_studio_2022_3 android_studio. This is required to build ASwB and run integration tests +http_archive( + name = "android_studio_2022_3", + build_file = "@//intellij_platform_sdk:BUILD.android_studio223", + sha256 = "250625dcab183e0c68ebf12ef8a522af7369527d76f1efc704f93c05b02ffa9e", + url = "https://dl.google.com/dl/android/studio/ide-zips/2022.3.1.19/android-studio-2022.3.1.19-linux.tar.gz", +) + +# needed for cpp tests +http_archive( + name = "com_google_absl", + sha256 = "f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3", + strip_prefix = "abseil-cpp-20240722.0", + urls = [ + "https://github.com/abseil/abseil-cpp/archive/refs/tags/20240722.0.tar.gz", + ], +) + +_JARJAR_BUILD_FILE = """ +java_binary( + name = "jarjar_bin", + srcs = glob( + ["src/main/**/*.java"], + exclude = [ + "src/main/com/tonicsystems/jarjar/JarJarMojo.java", + "src/main/com/tonicsystems/jarjar/util/AntJarProcessor.java", + "src/main/com/tonicsystems/jarjar/JarJarTask.java", + ], + ), + main_class = "com.tonicsystems.jarjar.Main", + resources = [":help"], + use_launcher = False, + visibility = ["//visibility:public"], + deps = [":asm"], +) + +java_import( + name = "asm", + jars = glob(["lib/asm-*.jar"]), +) + +genrule( + name = "help", + srcs = ["src/main/com/tonicsystems/jarjar/help.txt"], + outs = ["com/tonicsystems/jarjar/help.txt"], + cmd = "cp $< $@", +) +""" + +new_git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") +new_git_repository( + name = "jarjar", + build_file_content = _JARJAR_BUILD_FILE, + commit = "38ff702d10baec78f30d5f57485ae452f0fe33b5", + remote = "https://github.com/google/jarjar", + shallow_since = "1518210648 -0800", +) + diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 27bae869b77..6cd375c3d12 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,5 +1,5 @@ { - "lockFileVersion": 11, + "lockFileVersion": 12, "registryFileHashes": { "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", @@ -7,8 +7,6 @@ "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.bcr.1/source.json": "14892cc698e02ffedf4967546e6bedb7245015906888d3465fcf27c90a26da10", - "https://bcr.bazel.build/modules/apple_support/1.5.0/MODULE.bazel": "50341a62efbc483e8a2a6aec30994a58749bd7b885e18dd96aa8c33031e558ef", - "https://bcr.bazel.build/modules/apple_support/1.5.0/source.json": "eb98a7627c0bc486b57f598ad8da50f6625d974c8f723e9ea71bd39f709c9862", "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", "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", @@ -32,6 +30,9 @@ "https://bcr.bazel.build/modules/buildozer/7.1.2/source.json": "c9028a501d2db85793a6996205c8de120944f50a0d570438fcae0457a5f9d1f8", "https://bcr.bazel.build/modules/cgrindel_bazel_starlib/0.18.0/MODULE.bazel": "1d548f0c383ec8fce15c14b42b7f5f4fc29e910fb747d54b40d8c949a5dea09c", "https://bcr.bazel.build/modules/cgrindel_bazel_starlib/0.18.0/source.json": "bb5421fffcf03965cb192a7dfa857c4cfc2d5ed7788d8b97da30f6b9d5706c9e", + "https://bcr.bazel.build/modules/gazelle/0.27.0/MODULE.bazel": "3446abd608295de6d90b4a8a118ed64a9ce11dcb3dda2dc3290a22056bd20996", + "https://bcr.bazel.build/modules/gazelle/0.30.0/MODULE.bazel": "f888a1effe338491f35f0e0e85003b47bb9d8295ccba73c37e07702d8d31c65b", + "https://bcr.bazel.build/modules/gazelle/0.31.0/MODULE.bazel": "0319690246f72d0b5d596724a0ea0da2fd823905643a042c95bc2c420438ddae", "https://bcr.bazel.build/modules/gazelle/0.32.0/MODULE.bazel": "b499f58a5d0d3537f3cf5b76d8ada18242f64ec474d8391247438bf04f58c7b8", "https://bcr.bazel.build/modules/gazelle/0.32.0/source.json": "ef7e2d5194a004d902f5a745eb8f466c90b63a539e9d59311197b87e4d1caee7", "https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4", @@ -62,6 +63,9 @@ "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.0.9/source.json": "1f1ba6fea244b616de4a554a0f4983c91a9301640c8fe0dd1d410254115c8430", + "https://bcr.bazel.build/modules/rules_go/0.33.0/MODULE.bazel": "a2b11b64cd24bf94f57454f53288a5dacfe6cb86453eee7761b7637728c1910c", + "https://bcr.bazel.build/modules/rules_go/0.38.1/MODULE.bazel": "fb8e73dd3b6fc4ff9d260ceacd830114891d49904f5bda1c16bc147bcc254f71", + "https://bcr.bazel.build/modules/rules_go/0.39.1/MODULE.bazel": "d34fb2a249403a5f4339c754f1e63dc9e5ad70b47c5e97faee1441fc6636cd61", "https://bcr.bazel.build/modules/rules_go/0.41.0/MODULE.bazel": "55861d8e8bb0e62cbd2896f60ff303f62ffcb0eddb74ecb0e5c0cbe36fc292c8", "https://bcr.bazel.build/modules/rules_go/0.41.0/source.json": "a46e5f523176e3bd60b1c9cfdcb6c878b9cd14c21fe1a563c4ba0e6d0e7c4dd8", "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", @@ -72,7 +76,7 @@ "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/7.6.5/MODULE.bazel": "481164be5e02e4cab6e77a36927683263be56b7e36fef918b458d7a8a1ebadb1", + "https://bcr.bazel.build/modules/rules_java/7.9.0/MODULE.bazel": "aa1ebea5c5e2a4b31fbabe07bf3e9951ccc0f4e92499c42d325580f86c456020", "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", @@ -115,188 +119,575 @@ }, "selectedYankedVersions": {}, "moduleExtensions": { - "@@apple_support~//crosstool:setup.bzl%apple_cc_configure_extension": { + "@@buildifier_prebuilt+//:defs.bzl%buildifier_prebuilt_deps_extension": { "general": { - "bzlTransitiveDigest": "PjIds3feoYE8SGbbIq2SFTZy3zmxeO2tQevJZNDo7iY=", - "usagesDigest": "aLmqbvowmHkkBPve05yyDNGN7oh7QE9kBADr3QIZTZs=", + "bzlTransitiveDigest": "HNTvnbQZ/YwnPbXuU8835Qrli6rVsQbn1zBwpFcR1Ms=", + "usagesDigest": "l94NilaqK2iNgS1rK9H5diye9gKyeptInlXNIAnvBGA=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, "generatedRepoSpecs": { - "local_config_apple_cc": { - "bzlFile": "@@apple_support~//crosstool:setup.bzl", - "ruleClassName": "_apple_cc_autoconf", - "attributes": {} - }, - "local_config_apple_cc_toolchains": { - "bzlFile": "@@apple_support~//crosstool:setup.bzl", - "ruleClassName": "_apple_cc_autoconf_toolchains", - "attributes": {} - } - }, - "recordedRepoMappingEntries": [ - [ - "apple_support~", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@buildifier_prebuilt~//:defs.bzl%buildifier_prebuilt_deps_extension": { - "general": { - "bzlTransitiveDigest": "cnU/K9IY/VeHcxnGaL5eLuX+z8qIjt0yUjs2dZfB3Rc=", - "usagesDigest": "dJKWOSZZDy7RHc2XG1O6ezkxcNMSeKBpUqAz2pk8cbY=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "buildozer_darwin_amd64": { + "buildifier_darwin_amd64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-darwin-amd64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-darwin-amd64" ], - "downloaded_file_path": "buildozer", + "downloaded_file_path": "buildifier", "executable": true, - "sha256": "4014751a4cc5e91a7dc4b64be7b30c565bd9014ae6d1879818dc624562a1d431" + "sha256": "e2f4a67691c5f55634fbfb3850eb97dd91be0edd059d947b6c83d120682e0216" } }, - "buildifier_linux_amd64": { + "buildifier_darwin_arm64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-linux-amd64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-darwin-arm64" ], "downloaded_file_path": "buildifier", "executable": true, - "sha256": "51bc947dabb7b14ec6fb1224464fbcf7a7cb138f1a10a3b328f00835f72852ce" + "sha256": "7549b5f535219ac957aa2a6069d46fbfc9ea3f74abd85fd3d460af4b1a2099a6" } }, - "buildozer_darwin_arm64": { + "buildifier_linux_amd64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-darwin-arm64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-linux-amd64" ], - "downloaded_file_path": "buildozer", + "downloaded_file_path": "buildifier", "executable": true, - "sha256": "e78bd5357f2356067d4b0d49ec4e4143dd9b1308746afc6ff11b55b952f462d7" + "sha256": "51bc947dabb7b14ec6fb1224464fbcf7a7cb138f1a10a3b328f00835f72852ce" } }, - "buildozer_linux_amd64": { + "buildifier_linux_arm64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-linux-amd64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-linux-arm64" ], - "downloaded_file_path": "buildozer", + "downloaded_file_path": "buildifier", "executable": true, - "sha256": "2aef0f1ef80a0140b8fe6e6a8eb822e14827d8855bfc6681532c7530339ea23b" + "sha256": "0ba6e8e3208b5a029164e542ddb5509e618f87b639ffe8cc2f54770022853080" } }, - "buildozer_windows_amd64": { + "buildifier_windows_amd64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-windows-amd64.exe" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-windows-amd64.exe" ], - "downloaded_file_path": "buildozer.exe", + "downloaded_file_path": "buildifier.exe", "executable": true, - "sha256": "07664d5d08ee099f069cd654070cabf2708efaae9f52dc83921fa400c67a868b" + "sha256": "92bdd284fbc6766fc3e300b434ff9e68ac4d76a06cb29d1bdefe79a102a8d135" } }, - "buildozer_linux_arm64": { + "buildozer_darwin_amd64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-linux-arm64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-darwin-amd64" ], "downloaded_file_path": "buildozer", "executable": true, - "sha256": "586e27630cbc242e8bd6fe8e24485eca8dcadea6410cc13cbe059202655980ac" + "sha256": "4014751a4cc5e91a7dc4b64be7b30c565bd9014ae6d1879818dc624562a1d431" } }, - "buildifier_windows_amd64": { + "buildozer_darwin_arm64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-windows-amd64.exe" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-darwin-arm64" ], - "downloaded_file_path": "buildifier.exe", + "downloaded_file_path": "buildozer", "executable": true, - "sha256": "92bdd284fbc6766fc3e300b434ff9e68ac4d76a06cb29d1bdefe79a102a8d135" - } - }, - "buildifier_prebuilt_toolchains": { - "bzlFile": "@@buildifier_prebuilt~//:defs.bzl", - "ruleClassName": "_buildifier_toolchain_setup", - "attributes": { - "assets_json": "[{\"arch\":\"amd64\",\"name\":\"buildifier\",\"platform\":\"darwin\",\"sha256\":\"e2f4a67691c5f55634fbfb3850eb97dd91be0edd059d947b6c83d120682e0216\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildifier\",\"platform\":\"darwin\",\"sha256\":\"7549b5f535219ac957aa2a6069d46fbfc9ea3f74abd85fd3d460af4b1a2099a6\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildifier\",\"platform\":\"linux\",\"sha256\":\"51bc947dabb7b14ec6fb1224464fbcf7a7cb138f1a10a3b328f00835f72852ce\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildifier\",\"platform\":\"linux\",\"sha256\":\"0ba6e8e3208b5a029164e542ddb5509e618f87b639ffe8cc2f54770022853080\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildifier\",\"platform\":\"windows\",\"sha256\":\"92bdd284fbc6766fc3e300b434ff9e68ac4d76a06cb29d1bdefe79a102a8d135\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildozer\",\"platform\":\"darwin\",\"sha256\":\"4014751a4cc5e91a7dc4b64be7b30c565bd9014ae6d1879818dc624562a1d431\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildozer\",\"platform\":\"darwin\",\"sha256\":\"e78bd5357f2356067d4b0d49ec4e4143dd9b1308746afc6ff11b55b952f462d7\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildozer\",\"platform\":\"linux\",\"sha256\":\"2aef0f1ef80a0140b8fe6e6a8eb822e14827d8855bfc6681532c7530339ea23b\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildozer\",\"platform\":\"linux\",\"sha256\":\"586e27630cbc242e8bd6fe8e24485eca8dcadea6410cc13cbe059202655980ac\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildozer\",\"platform\":\"windows\",\"sha256\":\"07664d5d08ee099f069cd654070cabf2708efaae9f52dc83921fa400c67a868b\",\"version\":\"v6.1.2\"}]" + "sha256": "e78bd5357f2356067d4b0d49ec4e4143dd9b1308746afc6ff11b55b952f462d7" } }, - "buildifier_darwin_amd64": { + "buildozer_linux_amd64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-darwin-amd64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-linux-amd64" ], - "downloaded_file_path": "buildifier", + "downloaded_file_path": "buildozer", "executable": true, - "sha256": "e2f4a67691c5f55634fbfb3850eb97dd91be0edd059d947b6c83d120682e0216" + "sha256": "2aef0f1ef80a0140b8fe6e6a8eb822e14827d8855bfc6681532c7530339ea23b" } }, - "buildifier_darwin_arm64": { + "buildozer_linux_arm64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-darwin-arm64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-linux-arm64" ], - "downloaded_file_path": "buildifier", + "downloaded_file_path": "buildozer", "executable": true, - "sha256": "7549b5f535219ac957aa2a6069d46fbfc9ea3f74abd85fd3d460af4b1a2099a6" + "sha256": "586e27630cbc242e8bd6fe8e24485eca8dcadea6410cc13cbe059202655980ac" } }, - "buildifier_linux_arm64": { + "buildozer_windows_amd64": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_file", "attributes": { "urls": [ - "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildifier-linux-arm64" + "https://github.com/bazelbuild/buildtools/releases/download/v6.1.2/buildozer-windows-amd64.exe" ], - "downloaded_file_path": "buildifier", + "downloaded_file_path": "buildozer.exe", "executable": true, - "sha256": "0ba6e8e3208b5a029164e542ddb5509e618f87b639ffe8cc2f54770022853080" + "sha256": "07664d5d08ee099f069cd654070cabf2708efaae9f52dc83921fa400c67a868b" + } + }, + "buildifier_prebuilt_toolchains": { + "bzlFile": "@@buildifier_prebuilt+//:defs.bzl", + "ruleClassName": "_buildifier_toolchain_setup", + "attributes": { + "assets_json": "[{\"arch\":\"amd64\",\"name\":\"buildifier\",\"platform\":\"darwin\",\"sha256\":\"e2f4a67691c5f55634fbfb3850eb97dd91be0edd059d947b6c83d120682e0216\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildifier\",\"platform\":\"darwin\",\"sha256\":\"7549b5f535219ac957aa2a6069d46fbfc9ea3f74abd85fd3d460af4b1a2099a6\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildifier\",\"platform\":\"linux\",\"sha256\":\"51bc947dabb7b14ec6fb1224464fbcf7a7cb138f1a10a3b328f00835f72852ce\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildifier\",\"platform\":\"linux\",\"sha256\":\"0ba6e8e3208b5a029164e542ddb5509e618f87b639ffe8cc2f54770022853080\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildifier\",\"platform\":\"windows\",\"sha256\":\"92bdd284fbc6766fc3e300b434ff9e68ac4d76a06cb29d1bdefe79a102a8d135\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildozer\",\"platform\":\"darwin\",\"sha256\":\"4014751a4cc5e91a7dc4b64be7b30c565bd9014ae6d1879818dc624562a1d431\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildozer\",\"platform\":\"darwin\",\"sha256\":\"e78bd5357f2356067d4b0d49ec4e4143dd9b1308746afc6ff11b55b952f462d7\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildozer\",\"platform\":\"linux\",\"sha256\":\"2aef0f1ef80a0140b8fe6e6a8eb822e14827d8855bfc6681532c7530339ea23b\",\"version\":\"v6.1.2\"},{\"arch\":\"arm64\",\"name\":\"buildozer\",\"platform\":\"linux\",\"sha256\":\"586e27630cbc242e8bd6fe8e24485eca8dcadea6410cc13cbe059202655980ac\",\"version\":\"v6.1.2\"},{\"arch\":\"amd64\",\"name\":\"buildozer\",\"platform\":\"windows\",\"sha256\":\"07664d5d08ee099f069cd654070cabf2708efaae9f52dc83921fa400c67a868b\",\"version\":\"v6.1.2\"}]" } } }, "recordedRepoMappingEntries": [ [ - "buildifier_prebuilt~", + "buildifier_prebuilt+", "bazel_skylib", - "bazel_skylib~" + "bazel_skylib+" ], [ - "buildifier_prebuilt~", + "buildifier_prebuilt+", "bazel_tools", "bazel_tools" ] ] } }, + "@@gazelle+//:extensions.bzl%go_deps": { + "general": { + "bzlTransitiveDigest": "GQJwTj8mNP2Y2CSOhQkglCUIxMRJwbvd8Sg6BFCaF2s=", + "usagesDigest": "2fyS1Urtbq0Y4Cg/Ghx5+FSFG7fZvNC0Mc1yZNcUfEs=", + "recordedFileInputs": { + "@@cgrindel_bazel_starlib+//go.sum": "c50d75994c714e6fddfc6eb0cb8da5d2c40ff0ca816fa655ed0cf397cf16a27b", + "@@rules_go+//go.sum": "022d36c9ebcc7b5dee1e9b85b3da9c9f3a529ee6f979946d66e4955b8d54614a", + "@@gazelle+//go.mod": "bba4cfc2ab0f927f85f142b92843ab4dfb3c0be11aec9c663203a6543c0cde9b", + "@@rules_go+//go.mod": "a7143f329c2a3e0b983ce74a96c0c25b0d0c59d236d75f7e1b069aadd988d55e", + "@@gazelle+//go.sum": "7491cc4ce7c344c149d512167d9e580be4d3c1dcd6fbb334e677ead2c2951b3d", + "@@cgrindel_bazel_starlib+//go.mod": "2a988325920be786451553b4c7e4251b65cf3de0a1bd8a7917ff742cd33a278e" + }, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "com_github_gogo_protobuf": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/gogo/protobuf", + "sum": "h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=", + "replace": "", + "version": "v1.3.2", + "build_directives": [ + "gazelle:proto disable" + ], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_golang_mock": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/golang/mock", + "sum": "h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=", + "replace": "", + "version": "v1.6.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_golang_protobuf": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/golang/protobuf", + "sum": "h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=", + "replace": "", + "version": "v1.5.2", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_google_protobuf": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "google.golang.org/protobuf", + "sum": "h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=", + "replace": "", + "version": "v1.28.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_x_net": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "golang.org/x/net", + "sum": "h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0=", + "replace": "", + "version": "v0.0.0-20210405180319-a5a99cb37ef4", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_x_sys": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "golang.org/x/sys", + "sum": "h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=", + "replace": "", + "version": "v0.8.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_x_text": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "golang.org/x/text", + "sum": "h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=", + "replace": "", + "version": "v0.3.3", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_google_genproto": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "google.golang.org/genproto", + "sum": "h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=", + "replace": "", + "version": "v0.0.0-20200526211855-cb27e3aa2013", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_google_grpc": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "google.golang.org/grpc", + "sum": "h1:fPVVDxY9w++VjTZsYvXWqEf9Rqar/e+9zYfxKK+W+YU=", + "replace": "", + "version": "v1.50.0", + "build_directives": [ + "gazelle:proto disable" + ], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_bazelbuild_buildtools": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/bazelbuild/buildtools", + "sum": "h1:Fl1FfItZp34QIQmmDTbZXHB5XA6JfbNNfH7tRRGWvQo=", + "replace": "", + "version": "v0.0.0-20230510134650-37bd1811516d", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_bmatcuk_doublestar_v4": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/bmatcuk/doublestar/v4", + "sum": "h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc=", + "replace": "", + "version": "v4.6.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_fsnotify_fsnotify": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/fsnotify/fsnotify", + "sum": "h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=", + "replace": "", + "version": "v1.6.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_google_go_cmp": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/google/go-cmp", + "sum": "h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=", + "replace": "", + "version": "v0.5.9", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_pmezard_go_difflib": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/pmezard/go-difflib", + "sum": "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=", + "replace": "", + "version": "v1.0.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_x_mod": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "golang.org/x/mod", + "sum": "h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk=", + "replace": "", + "version": "v0.10.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_x_sync": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "golang.org/x/sync", + "sum": "h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI=", + "replace": "", + "version": "v0.2.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "org_golang_x_tools": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "golang.org/x/tools", + "sum": "h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo=", + "replace": "", + "version": "v0.9.1", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_creasty_defaults": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/creasty/defaults", + "sum": "h1:eNdqZvc5B509z18lD8yc212CAqJNvfT1Jq6L8WowdBA=", + "replace": "", + "version": "v1.7.0", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_gomarkdown_markdown": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/gomarkdown/markdown", + "sum": "h1:EcQR3gusLHN46TAD+G+EbaaqJArt5vHhNpXAa12PQf4=", + "replace": "", + "version": "v0.0.0-20230922112808-5421fefb8386", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_stretchr_testify": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/stretchr/testify", + "sum": "h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=", + "replace": "", + "version": "v1.8.4", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "in_gopkg_yaml_v3": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "gopkg.in/yaml.v3", + "sum": "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=", + "replace": "", + "version": "v3.0.1", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "com_github_davecgh_go_spew": { + "bzlFile": "@@gazelle+//internal:go_repository.bzl", + "ruleClassName": "go_repository", + "attributes": { + "importpath": "github.com/davecgh/go-spew", + "sum": "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=", + "replace": "", + "version": "v1.1.1", + "build_directives": [], + "build_file_generation": "auto", + "patches": [], + "patch_args": [] + } + }, + "bazel_gazelle_go_repository_config": { + "bzlFile": "@@gazelle+//internal/bzlmod:go_deps.bzl", + "ruleClassName": "_go_repository_config", + "attributes": { + "importpaths": { + "com_github_gogo_protobuf": "github.com/gogo/protobuf", + "com_github_golang_mock": "github.com/golang/mock", + "com_github_golang_protobuf": "github.com/golang/protobuf", + "org_golang_google_protobuf": "google.golang.org/protobuf", + "org_golang_x_net": "golang.org/x/net", + "org_golang_x_sys": "golang.org/x/sys", + "org_golang_x_text": "golang.org/x/text", + "org_golang_google_genproto": "google.golang.org/genproto", + "org_golang_google_grpc": "google.golang.org/grpc", + "com_github_bazelbuild_buildtools": "github.com/bazelbuild/buildtools", + "com_github_bmatcuk_doublestar_v4": "github.com/bmatcuk/doublestar/v4", + "com_github_fsnotify_fsnotify": "github.com/fsnotify/fsnotify", + "com_github_google_go_cmp": "github.com/google/go-cmp", + "com_github_pmezard_go_difflib": "github.com/pmezard/go-difflib", + "org_golang_x_mod": "golang.org/x/mod", + "org_golang_x_sync": "golang.org/x/sync", + "org_golang_x_tools": "golang.org/x/tools", + "com_github_creasty_defaults": "github.com/creasty/defaults", + "com_github_gomarkdown_markdown": "github.com/gomarkdown/markdown", + "com_github_stretchr_testify": "github.com/stretchr/testify", + "in_gopkg_yaml_v3": "gopkg.in/yaml.v3", + "com_github_davecgh_go_spew": "github.com/davecgh/go-spew", + "@rules_go+": "github.com/bazelbuild/rules_go", + "@gazelle+": "github.com/bazelbuild/bazel-gazelle", + "@cgrindel_bazel_starlib+": "github.com/cgrindel/bazel-starlib" + }, + "module_names": { + "@rules_go+": "rules_go", + "@gazelle+": "gazelle", + "@cgrindel_bazel_starlib+": "cgrindel_bazel_starlib" + }, + "build_naming_conventions": {} + } + } + }, + "moduleExtensionMetadata": { + "explicitRootModuleDirectDeps": [], + "explicitRootModuleDirectDevDeps": [], + "useAllRepos": "NO", + "reproducible": false + }, + "recordedRepoMappingEntries": [ + [ + "gazelle+", + "bazel_tools", + "bazel_tools" + ] + ] + } + }, + "@@gazelle+//internal/bzlmod:non_module_deps.bzl%non_module_deps": { + "general": { + "bzlTransitiveDigest": "Bp38I6OO2Uxk82ttCDtNtgYSQwwG4qQ9eexnd38xQxU=", + "usagesDigest": "fMMY/cCSV5FPNJN/PddsIaD5OH+o0DZ4f4/0e8OVjO0=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "bazel_gazelle_go_repository_cache": { + "bzlFile": "@@gazelle+//internal:go_repository_cache.bzl", + "ruleClassName": "go_repository_cache", + "attributes": { + "go_sdk_name": "go_sdk", + "go_env": {} + } + }, + "bazel_gazelle_go_repository_tools": { + "bzlFile": "@@gazelle+//internal:go_repository_tools.bzl", + "ruleClassName": "go_repository_tools", + "attributes": { + "go_cache": "@@gazelle++non_module_deps+bazel_gazelle_go_repository_cache//:go.env" + } + } + }, + "recordedRepoMappingEntries": [ + [ + "gazelle+", + "bazel_gazelle_go_repository_cache", + "gazelle++non_module_deps+bazel_gazelle_go_repository_cache" + ] + ] + } + }, "@@platforms//host:extension.bzl%host_platform": { "general": { "bzlTransitiveDigest": "xelQcPZH8+tmuOHVjL9vDxMnnQNMlwj0SlvgoqBkm4U=", - "usagesDigest": "V1R2Y2oMxKNfx2WCWpSCaUV1WefW1o8HZGm3v1vHgY4=", + "usagesDigest": "Bcd3u+DVb2y4CGQMdaW+cMIOQQmMhMfBbBbypKEjqpA=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -310,10 +701,10 @@ "recordedRepoMappingEntries": [] } }, - "@@protobuf~//:non_module_deps.bzl%non_module_deps": { + "@@protobuf+//:non_module_deps.bzl%non_module_deps": { "general": { - "bzlTransitiveDigest": "jsbfONl9OksDWiAs7KDFK5chH/tYI3DngdM30NKdk5Y=", - "usagesDigest": "eVrT3hFCIZNRuTKpfWDzSIwTi2p6U6PWbt+tNWl/Tqk=", + "bzlTransitiveDigest": "OaID94YoUuo89CDCPUVeomNfmMBqRMz/aFoknez7nyQ=", + "usagesDigest": "snLZ3r+iO85XTwnTDKJ8Vb1zj1QJdWpWrUeZMxZbtL0=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -332,31 +723,30 @@ }, "recordedRepoMappingEntries": [ [ - "protobuf~", + "protobuf+", "bazel_tools", "bazel_tools" ] ] } }, - "@@rules_bazel_integration_test~//:extensions.bzl%bazel_binaries": { + "@@rules_bazel_integration_test+//:extensions.bzl%bazel_binaries": { "general": { "bzlTransitiveDigest": "ruMfvWwZzwPPkk+exdpYAe94RD+4erzc4ePrZ08MuKc=", - "usagesDigest": "NOmZNyUfHK4TOR2tGFP4OfRYOHmgVVZiVibKj0w/wws=", + "usagesDigest": "ZAR5bg+vnWkFhnm3pdJF1CvNaWqJk52YsZyFldNe10I=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, "generatedRepoSpecs": { - "build_bazel_bazel_7_2_1": { - "bzlFile": "@@rules_bazel_integration_test~//bazel_integration_test/private:bazel_binaries.bzl", - "ruleClassName": "bazel_binary", + "bazel_binaries_bazelisk": { + "bzlFile": "@@rules_bazel_integration_test+//bazel_integration_test/private:bazel_binaries.bzl", + "ruleClassName": "bazelisk_binary", "attributes": { - "version": "7.2.1", - "bazelisk": "@bazel_binaries_bazelisk//:bazelisk" + "version": "1.18.0" } }, "build_bazel_bazel_5_4_1": { - "bzlFile": "@@rules_bazel_integration_test~//bazel_integration_test/private:bazel_binaries.bzl", + "bzlFile": "@@rules_bazel_integration_test+//bazel_integration_test/private:bazel_binaries.bzl", "ruleClassName": "bazel_binary", "attributes": { "version": "5.4.1", @@ -364,22 +754,23 @@ } }, "build_bazel_bazel_6_5_0": { - "bzlFile": "@@rules_bazel_integration_test~//bazel_integration_test/private:bazel_binaries.bzl", + "bzlFile": "@@rules_bazel_integration_test+//bazel_integration_test/private:bazel_binaries.bzl", "ruleClassName": "bazel_binary", "attributes": { "version": "6.5.0", "bazelisk": "@bazel_binaries_bazelisk//:bazelisk" } }, - "bazel_binaries_bazelisk": { - "bzlFile": "@@rules_bazel_integration_test~//bazel_integration_test/private:bazel_binaries.bzl", - "ruleClassName": "bazelisk_binary", + "build_bazel_bazel_7_2_1": { + "bzlFile": "@@rules_bazel_integration_test+//bazel_integration_test/private:bazel_binaries.bzl", + "ruleClassName": "bazel_binary", "attributes": { - "version": "1.18.0" + "version": "7.2.1", + "bazelisk": "@bazel_binaries_bazelisk//:bazelisk" } }, "bazel_binaries": { - "bzlFile": "@@rules_bazel_integration_test~//bazel_integration_test/bzlmod:bazel_binaries.bzl", + "bzlFile": "@@rules_bazel_integration_test+//bazel_integration_test/bzlmod:bazel_binaries.bzl", "ruleClassName": "_bazel_binaries_helper", "attributes": { "version_to_repo": { @@ -405,28 +796,28 @@ }, "recordedRepoMappingEntries": [ [ - "rules_bazel_integration_test~", + "rules_bazel_integration_test+", "bazel_skylib", - "bazel_skylib~" + "bazel_skylib+" ], [ - "rules_bazel_integration_test~", + "rules_bazel_integration_test+", "cgrindel_bazel_starlib", - "cgrindel_bazel_starlib~" + "cgrindel_bazel_starlib+" ] ] } }, - "@@rules_go~//go:extensions.bzl%go_sdk": { + "@@rules_go+//go:extensions.bzl%go_sdk": { "general": { - "bzlTransitiveDigest": "EJ2jI5PPSo7sHmzcmLtJ0MyhdsySDOSbGoU59oYFq6g=", - "usagesDigest": "iCi4vvB/o8+YbHbanvXFt/aAfEzyn26Vx7EVNcmlSqE=", + "bzlTransitiveDigest": "XGAeb/3H6ZR3I9YO73yd2Ab4Ky8AKPDAtXbHT1aF6+o=", + "usagesDigest": "8zh5LQLuOjjaCxsb/U5FgqEGimQu64mXaJlMatjLKIU=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, "generatedRepoSpecs": { "go_default_sdk": { - "bzlFile": "@@rules_go~//go/private:sdk.bzl", + "bzlFile": "@@rules_go+//go/private:sdk.bzl", "ruleClassName": "go_download_sdk_rule", "attributes": { "goos": "", @@ -439,14 +830,14 @@ } }, "go_host_compatible_sdk_label": { - "bzlFile": "@@rules_go~//go/private:extensions.bzl", + "bzlFile": "@@rules_go+//go/private:extensions.bzl", "ruleClassName": "host_compatible_toolchain", "attributes": { "toolchain": "@go_default_sdk//:ROOT" } }, "go_toolchains": { - "bzlFile": "@@rules_go~//go/private:sdk.bzl", + "bzlFile": "@@rules_go+//go/private:sdk.bzl", "ruleClassName": "go_multiple_toolchains", "attributes": { "prefixes": [ @@ -472,53 +863,222 @@ }, "recordedRepoMappingEntries": [ [ - "rules_go~", + "rules_go+", "bazel_tools", "bazel_tools" ] ] } }, - "@@rules_kotlin~//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { + "@@rules_go+//go/private:extensions.bzl%non_module_dependencies": { "general": { - "bzlTransitiveDigest": "l//eFZVgEUHSUfuQ1zQw9uxmcJku8ikraA2fv/2Pyh0=", - "usagesDigest": "NXmdQOmIAdsAdtLv3dhkX8UQ+0st9iQ0EkR28lUNdHc=", + "bzlTransitiveDigest": "6P4YdcYwb/6nEOV1gEkv9i3KbrzJJX6QNv+iO+jSpvw=", + "usagesDigest": "5uvoDllYVhBn0MBhl6EjOhMBSOCWD2k/NBRmkFSC/bE=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, "generatedRepoSpecs": { - "rules_android": { + "bazel_skylib": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", "ruleClassName": "http_archive", "attributes": { - "sha256": "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", - "strip_prefix": "rules_android-0.1.1", "urls": [ - "https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip" + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz" + ], + "sha256": "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa", + "strip_prefix": "" + } + }, + "org_golang_x_tools": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://mirror.bazel.build/github.com/golang/tools/archive/refs/tags/v0.7.0.zip", + "https://github.com/golang/tools/archive/refs/tags/v0.7.0.zip" + ], + "sha256": "9f20a20f29f4008d797a8be882ef82b69cf8f7f2b96dbdfe3814c57d8280fa4b", + "strip_prefix": "tools-0.7.0", + "patches": [ + "@@rules_go+//third_party:org_golang_x_tools-deletegopls.patch", + "@@rules_go+//third_party:org_golang_x_tools-gazelle.patch" + ], + "patch_args": [ + "-p1" ] } }, - "com_github_pinterest_ktlint": { + "org_golang_x_sys": { "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_file", + "ruleClassName": "http_archive", "attributes": { - "sha256": "01b2e0ef893383a50dbeb13970fe7fa3be36ca3e83259e01649945b09d736985", "urls": [ - "https://github.com/pinterest/ktlint/releases/download/1.3.0/ktlint" + "https://mirror.bazel.build/github.com/golang/sys/archive/refs/tags/v0.8.0.zip", + "https://github.com/golang/sys/archive/refs/tags/v0.8.0.zip" ], - "executable": true + "sha256": "58ef1f478ba923715bc493f2e0a431d4b2d428f1e3409f6acaac452945f6fd2f", + "strip_prefix": "sys-0.8.0", + "patches": [ + "@@rules_go+//third_party:org_golang_x_sys-gazelle.patch" + ], + "patch_args": [ + "-p1" + ] } }, - "com_github_jetbrains_kotlin": { - "bzlFile": "@@rules_kotlin~//src/main/starlark/core/repositories:compiler.bzl", - "ruleClassName": "kotlin_capabilities_repository", + "org_golang_x_xerrors": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", "attributes": { - "git_repository_name": "com_github_jetbrains_kotlin_git", - "compiler_version": "1.9.23" + "urls": [ + "https://mirror.bazel.build/github.com/golang/xerrors/archive/04be3eba64a22a838cdb17b8dca15a52871c08b4.zip", + "https://github.com/golang/xerrors/archive/04be3eba64a22a838cdb17b8dca15a52871c08b4.zip" + ], + "sha256": "ffad2b06ef2e09d040da2ff08077865e99ab95d4d0451737fc8e33706bb01634", + "strip_prefix": "xerrors-04be3eba64a22a838cdb17b8dca15a52871c08b4", + "patches": [ + "@@rules_go+//third_party:org_golang_x_xerrors-gazelle.patch" + ], + "patch_args": [ + "-p1" + ] + } + }, + "org_golang_google_protobuf": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "sha256": "cb1a05581c33b3705ede6c08edf9b9c1dbc579559ba30f532704c324e42bf801", + "urls": [ + "https://mirror.bazel.build/github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.30.0.zip", + "https://github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.30.0.zip" + ], + "strip_prefix": "protobuf-go-1.30.0", + "patches": [ + "@@rules_go+//third_party:org_golang_google_protobuf-gazelle.patch" + ], + "patch_args": [ + "-p1" + ] + } + }, + "com_github_golang_protobuf": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://mirror.bazel.build/github.com/golang/protobuf/archive/refs/tags/v1.5.3.zip", + "https://github.com/golang/protobuf/archive/refs/tags/v1.5.3.zip" + ], + "sha256": "2dced4544ae5372281e20f1e48ca76368355a01b31353724718c4d6e3dcbb430", + "strip_prefix": "protobuf-1.5.3", + "patches": [ + "@@rules_go+//third_party:com_github_golang_protobuf-gazelle.patch" + ], + "patch_args": [ + "-p1" + ] } }, + "com_github_mwitkow_go_proto_validators": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://mirror.bazel.build/github.com/mwitkow/go-proto-validators/archive/refs/tags/v0.3.2.zip", + "https://github.com/mwitkow/go-proto-validators/archive/refs/tags/v0.3.2.zip" + ], + "sha256": "d8697f05a2f0eaeb65261b480e1e6035301892d9fc07ed945622f41b12a68142", + "strip_prefix": "go-proto-validators-0.3.2" + } + }, + "com_github_gogo_protobuf": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://mirror.bazel.build/github.com/gogo/protobuf/archive/refs/tags/v1.3.2.zip", + "https://github.com/gogo/protobuf/archive/refs/tags/v1.3.2.zip" + ], + "sha256": "f89f8241af909ce3226562d135c25b28e656ae173337b3e58ede917aa26e1e3c", + "strip_prefix": "protobuf-1.3.2", + "patches": [ + "@@rules_go+//third_party:com_github_gogo_protobuf-gazelle.patch" + ], + "patch_args": [ + "-p1" + ] + } + }, + "gogo_special_proto": { + "bzlFile": "@@rules_go+//proto:gogo.bzl", + "ruleClassName": "gogo_special_proto", + "attributes": {} + }, + "org_golang_google_genproto": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/e85fd2cbaebc35e54b279b5e9b1057db87dacd57.zip", + "https://github.com/googleapis/go-genproto/archive/e85fd2cbaebc35e54b279b5e9b1057db87dacd57.zip" + ], + "sha256": "da966a75fdc2f9d8006bc51e683490ff969ff637bbc030812cd9c5697e3a7cab", + "strip_prefix": "go-genproto-e85fd2cbaebc35e54b279b5e9b1057db87dacd57", + "patches": [ + "@@rules_go+//third_party:org_golang_google_genproto-gazelle.patch" + ], + "patch_args": [ + "-p1" + ] + } + }, + "com_github_golang_mock": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "urls": [ + "https://mirror.bazel.build/github.com/golang/mock/archive/refs/tags/v1.7.0-rc.1.zip", + "https://github.com/golang/mock/archive/refs/tags/v1.7.0-rc.1.zip" + ], + "patches": [ + "@@rules_go+//third_party:com_github_golang_mock-gazelle.patch" + ], + "patch_args": [ + "-p1" + ], + "sha256": "5359c78b0c1649cf7beb3b48ff8b1d1aaf0243b22ea4789aba94805280075d8e", + "strip_prefix": "mock-1.7.0-rc.1" + } + }, + "io_bazel_rules_nogo": { + "bzlFile": "@@rules_go+//go/private:nogo.bzl", + "ruleClassName": "go_register_nogo", + "attributes": { + "nogo": "@io_bazel_rules_go//:default_nogo" + } + } + }, + "recordedRepoMappingEntries": [ + [ + "rules_go+", + "bazel_tools", + "bazel_tools" + ] + ] + } + }, + "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { + "general": { + "bzlTransitiveDigest": "Nw+JSQUn0q8PZ9L+AACqdvNxzdn8VPWq4KgCeLdtYg0=", + "usagesDigest": "4PjHmebaUnhfiKCmtgIuNW5TdoGXDbEJ39AT/I8+FV4=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { "com_github_jetbrains_kotlin_git": { - "bzlFile": "@@rules_kotlin~//src/main/starlark/core/repositories:compiler.bzl", + "bzlFile": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl", "ruleClassName": "kotlin_compiler_git_repository", "attributes": { "urls": [ @@ -527,8 +1087,16 @@ "sha256": "93137d3aab9afa9b27cb06a824c2324195c6b6f6179d8a8653f440f5bd58be88" } }, + "com_github_jetbrains_kotlin": { + "bzlFile": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl", + "ruleClassName": "kotlin_capabilities_repository", + "attributes": { + "git_repository_name": "com_github_jetbrains_kotlin_git", + "compiler_version": "1.9.23" + } + }, "com_github_google_ksp": { - "bzlFile": "@@rules_kotlin~//src/main/starlark/core/repositories:ksp.bzl", + "bzlFile": "@@rules_kotlin+//src/main/starlark/core/repositories:ksp.bzl", "ruleClassName": "ksp_compiler_plugin_repository", "attributes": { "urls": [ @@ -537,11 +1105,33 @@ "sha256": "ee0618755913ef7fd6511288a232e8fad24838b9af6ea73972a76e81053c8c2d", "strip_version": "1.9.23-1.0.20" } + }, + "com_github_pinterest_ktlint": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_file", + "attributes": { + "sha256": "01b2e0ef893383a50dbeb13970fe7fa3be36ca3e83259e01649945b09d736985", + "urls": [ + "https://github.com/pinterest/ktlint/releases/download/1.3.0/ktlint" + ], + "executable": true + } + }, + "rules_android": { + "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "sha256": "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", + "strip_prefix": "rules_android-0.1.1", + "urls": [ + "https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip" + ] + } } }, "recordedRepoMappingEntries": [ [ - "rules_kotlin~", + "rules_kotlin+", "bazel_tools", "bazel_tools" ] diff --git a/WORKSPACE.bzlmod b/WORKSPACE.bzlmod index 8bd303a6d29..048e8081b0a 100644 --- a/WORKSPACE.bzlmod +++ b/WORKSPACE.bzlmod @@ -1,600 +1,9 @@ workspace(name = "intellij_with_bazel") -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") - -# Long-lived download links available at: https://www.jetbrains.com/intellij-repository/releases - -# The plugin api for intellij_ce_2022_3. This is required to build IJwB and run integration tests. -http_archive( - name = "intellij_ce_2022_3", - build_file = "@//intellij_platform_sdk:BUILD.idea223", - sha256 = "f6ea9aee6dec73b55ea405b37402394095be3c658d1c2707a8f30ac848974eac", - url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2022.3/ideaIC-2022.3.zip", -) - -# The plugin api for intellij_ce_2023_1. This is required to build IJwB and run integration tests. -IC_231_SHA = "4e1dbd508a3dc6394735ae864034aa3598d16ddd568c3de2a9d7a386f3508fff" - -IC_231_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2023.1.7/ideaIC-2023.1.7.zip" - -http_archive( - name = "intellij_ce_2023_1", - build_file = "@//intellij_platform_sdk:BUILD.idea231", - sha256 = IC_231_SHA, - url = IC_231_URL, -) - -# The plugin api for intellij_ce_2023_2. This is required to build IJwB and run integration tests. -IC_232_SHA = "781a6e6ef0094e923a8719db716f5d3f6c3316209123c3e94b0e41c8100e55c8" - -IC_232_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2023.2.7/ideaIC-2023.2.7.zip" - -http_archive( - name = "intellij_ce_2023_2", - build_file = "@//intellij_platform_sdk:BUILD.idea232", - sha256 = IC_232_SHA, - url = IC_232_URL, -) - -# The plugin api for intellij_ce_2023_2. This is required to build IJwB and run integration tests. -IC_233_SHA = "bbd5c853b0bda2ad07d3d13f49371c8572266dfdfc0ee8c97657b4b46307a9a9" - -IC_233_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2023.3.7/ideaIC-2023.3.7.zip" - -http_archive( - name = "intellij_ce_2023_3", - build_file = "@//intellij_platform_sdk:BUILD.idea233", - sha256 = IC_233_SHA, - url = IC_233_URL, -) - -# The plugin api for intellij_ce_2024_1. This is required to build IJwB and run integration tests. -IC_241_SHA = "c8d4e8f6114af55286d43f69192c5699a61d0140bb148b49e87b08f42c602e9a" - -IC_241_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2024.1.6/ideaIC-2024.1.6.zip" - -http_archive( - name = "intellij_ce_2024_1", - build_file = "@//intellij_platform_sdk:BUILD.idea241", - sha256 = IC_241_SHA, - url = IC_241_URL, -) - -# The plugin api for intellij_ce_2024_2. This is required to build IJwB and run integration tests. -IC_242_SHA = "e9ad86b7bbbfac801a863fa914714549ea5010968b27846de481621afbde9f1e" - -IC_242_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2024.2.1/ideaIC-2024.2.1.zip" - -http_archive( - name = "intellij_ce_2024_2", - build_file = "@//intellij_platform_sdk:BUILD.idea242", - sha256 = IC_242_SHA, - url = IC_242_URL, -) - -# The plugin api for intellij_ue_2022_3. This is required to run UE-specific integration tests. -http_archive( - name = "intellij_ue_2022_3", - build_file = "@//intellij_platform_sdk:BUILD.ue223", - sha256 = "0b17ea16e70290d912b6be246460907643c23f33ae2c22331084818025c2b297", - url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2022.3/ideaIU-2022.3.zip", -) - -# The plugin api for intellij_ue_2023_1. This is required to run UE-specific integration tests. -IU_231_SHA = "46900f8b8aa65a4b522e2b7eb365337e836bc7c49b00b23b47860170f5b95c07" - -IU_231_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2023.1.7/ideaIU-2023.1.7.zip" - -http_archive( - name = "intellij_ue_2023_1", - build_file = "@//intellij_platform_sdk:BUILD.ue231", - sha256 = IU_231_SHA, - url = IU_231_URL, -) - -# The plugin api for intellij_ue_2023_2. This is required to run UE-specific integration tests. -IU_232_SHA = "1656b955207eb526db2b5b08a1d32e21440699e55fd21f7337f22e462c0bc9ec" - -IU_232_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2023.2.7/ideaIU-2023.2.7.zip" - -http_archive( - name = "intellij_ue_2023_2", - build_file = "@//intellij_platform_sdk:BUILD.ue232", - sha256 = IU_232_SHA, - url = IU_232_URL, -) - -IU_233_SHA = "d79751726a42d5135c1e1220a2b87ce632f7cf78cc5576840b7d06afc9a7fd74" - -IU_233_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2023.3.7/ideaIU-2023.3.7.zip" - -http_archive( - name = "intellij_ue_2023_3", - build_file = "@//intellij_platform_sdk:BUILD.ue233", - sha256 = IU_233_SHA, - url = IU_233_URL, -) - -IU_241_SHA = "5041e22af26b2445dd69fc4690e41ede2fd1b7567e81c3dd0d035430ccf07cd9" - -IU_241_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2024.1.6/ideaIU-2024.1.6.zip" - -http_archive( - name = "intellij_ue_2024_1", - build_file = "@//intellij_platform_sdk:BUILD.ue241", - sha256 = IU_241_SHA, - url = IU_241_URL, -) - -IU_242_SHA = "4a6fe742af9b7adb038ee13a4bf9abccf86f2f545610c9b8819daa5814740800" - -IU_242_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/2024.2.1/ideaIU-2024.2.1.zip" - -http_archive( - name = "intellij_ue_2024_2", - build_file = "@//intellij_platform_sdk:BUILD.ue242", - sha256 = IU_242_SHA, - url = IU_242_URL, -) - -# The plugin api for clion_2022_3. This is required to build CLwB\, and run integration tests. -http_archive( - name = "clion_2022_3", - build_file = "@//intellij_platform_sdk:BUILD.clion223", - sha256 = "5c248465a99f7286e7863ccc4fbd6772af890b57d71a02690e20031aa16d7957", - url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2022.3/clion-2022.3.zip", -) - -# The plugin api for clion_2023_1. This is required to build CLwB\, and run integration tests. -CLION_231_SHA = "2e94bfda121f54f96b7faf1a4df2da50d394c6ae46da6e98f37a731e2b50b189" - -CLION_231_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2023.1.7/clion-2023.1.7.zip" - -http_archive( - name = "clion_2023_1", - build_file = "@//intellij_platform_sdk:BUILD.clion231", - sha256 = CLION_231_SHA, - url = CLION_231_URL, -) - -# The plugin api for clion_2023_2. This is required to build CLwB\, and run integration tests. -CLION_232_SHA = "1bb67402b98a479a6eaab6a8e434988bbbc9c87442197788aa2c1dba5a328df0" - -CLION_232_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2023.2.4/clion-2023.2.4.zip" - -http_archive( - name = "clion_2023_2", - build_file = "@//intellij_platform_sdk:BUILD.clion232", - sha256 = CLION_232_SHA, - url = CLION_232_URL, -) - -CLION_233_SHA = "2ac8c3b89bb31e6d3644c3b06f50b8963370e623736d2900baad8225c6d52359" - -CLION_233_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2023.3.5/clion-2023.3.5.zip" - -http_archive( - name = "clion_2023_3", - build_file = "@//intellij_platform_sdk:BUILD.clion233", - sha256 = CLION_233_SHA, - url = CLION_233_URL, -) - -CLION_241_SHA = "f022c54f76667710f234e27befd68c7628a6143faada1090c6c42f140b91db35" - -CLION_241_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2024.1.5/clion-2024.1.5.zip" - -http_archive( - name = "clion_2024_1", - build_file = "@//intellij_platform_sdk:BUILD.clion241", - sha256 = CLION_241_SHA, - url = CLION_241_URL, -) - -CLION_242_SHA = "a1dcbcf2d8fd926d4100cad90b15a70f59299cdec6861555dab7b03960ef57bb" - -CLION_242_URL = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/clion/clion/2024.2.1/clion-2024.2.1.zip" - -http_archive( - name = "clion_2024_2", - build_file = "@//intellij_platform_sdk:BUILD.clion242", - sha256 = CLION_242_SHA, - url = CLION_242_URL, -) - -DEVKIT_BUILD_FILE = """ -java_import( - name = "devkit", - jars = ["devkit/lib/devkit.jar"], - visibility = ["//visibility:public"], -) -""" - -DEVKIT_233_SHA = "de6c1660d9744c2c10f26837debfa1256c0b87720eb506966a94cbba1a8a917f" - -DEVKIT_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/DevKit/233.15325.26/DevKit-233.15325.26.zip" - -http_archive( - name = "devkit_2023_3", - build_file_content = DEVKIT_BUILD_FILE, - sha256 = DEVKIT_233_SHA, - url = DEVKIT_233_URL, -) - -DEVKIT_241_SHA = "039c34d683b995a79ef46b4899413bbd80ab622aec701d0b269f865033e7ff7d" - -DEVKIT_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/DevKit/241.18968.39/DevKit-241.18968.39.zip" - -http_archive( - name = "devkit_2024_1", - build_file_content = DEVKIT_BUILD_FILE, - sha256 = DEVKIT_241_SHA, - url = DEVKIT_241_URL, -) - -DEVKIT_242_SHA = "bf72f615b34fe07d7ba65ee5fa22f0e02d14b619f6bce4cd68de488f768ccde4" - -DEVKIT_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/DevKit/242.21829.142/DevKit-242.21829.142.zip" - -http_archive( - name = "devkit_2024_2", - build_file_content = DEVKIT_BUILD_FILE, - sha256 = DEVKIT_242_SHA, - url = DEVKIT_242_URL, -) - -_PYTHON_CE_BUILD_FILE = """ -java_import( - name = "python", - jars = ["python-ce/lib/python-ce.jar"], - visibility = ["//visibility:public"], -) -filegroup( - name = "python_helpers", - srcs = glob(["python-ce/helpers/**/*"]), - visibility = ["//visibility:public"], -) -""" - -#TODO(ymoh): remove with the removal of 2021.1 Python plugin -# Python plugin for IntelliJ CE. Required at compile-time for python-specific features. -http_archive( - name = "python_2021_1", - build_file_content = _PYTHON_CE_BUILD_FILE, - sha256 = "7d16cc9bf80c9e2c26d55d55564c1c174583a5e6900e6b7f13d5663275b07644", - url = "https://plugins.jetbrains.com/files/7322/125352/python-ce-211.7628.24.zip", -) - -http_archive( - name = "python_2022_3", - build_file_content = _PYTHON_CE_BUILD_FILE, - sha256 = "65db7c364a3f1756cf07fb161ff4eb67fd8f8612a8c3da812b2f9ba5b2d6e13d", - url = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/223.7571.182/PythonCore-223.7571.182.zip", -) - -PYTHON_PLUGIN_231_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/231.9225.4/PythonCore-231.9225.4.zip" - -PYTHON_PLUGIN_231_SHA = "bb9fe55fc483b4da1f6062c764ebd076d0de9f913c924db295f2bd2f05353777" - -http_archive( - name = "python_2023_1", - build_file_content = _PYTHON_CE_BUILD_FILE, - sha256 = PYTHON_PLUGIN_231_SHA, - url = PYTHON_PLUGIN_231_URL, -) - -PYTHON_PLUGIN_232_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/232.10300.40/PythonCore-232.10300.40.zip" - -PYTHON_PLUGIN_232_SHA = "eab4b343491772123cd7daa4c3924d81de29ecd3a74495679216c28cc1bd0005" - -http_archive( - name = "python_2023_2", - build_file_content = _PYTHON_CE_BUILD_FILE, - sha256 = PYTHON_PLUGIN_232_SHA, - url = PYTHON_PLUGIN_232_URL, -) - -PYTHON_PLUGIN_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/233.14808.12/PythonCore-233.14808.12.zip" - -PYTHON_PLUGIN_233_SHA = "ce1c20372e558bc59076674eafc1a7fc55a3a3606116fd20f64032c02136091b" - -http_archive( - name = "python_2023_3", - build_file_content = _PYTHON_CE_BUILD_FILE, - sha256 = PYTHON_PLUGIN_233_SHA, - url = PYTHON_PLUGIN_233_URL, -) - -PYTHON_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/241.18034.55/PythonCore-241.18034.55.zip" - -PYTHON_PLUGIN_241_SHA = "b315d56176463a5f44c8a2dbdcbd528126f5b8a851f82d328c51fd66f62170c1" - -http_archive( - name = "python_2024_1", - build_file_content = _PYTHON_CE_BUILD_FILE, - sha256 = PYTHON_PLUGIN_241_SHA, - url = PYTHON_PLUGIN_241_URL, -) - -_PYTHON_CE_242_BUILD_FILE = """ -java_import( - name = "python", - jars = glob(["python-ce/lib/*.jar", "python-ce/lib/modules/*.jar"]), - visibility = ["//visibility:public"], -) -filegroup( - name = "python_helpers", - srcs = glob(["python-ce/helpers/**/*"]), - visibility = ["//visibility:public"], -) -""" - -PYTHON_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/PythonCore/242.21829.142/PythonCore-242.21829.142.zip" - -PYTHON_PLUGIN_242_SHA = "0feb08602df8bb5146222763f44a5da44600c06d98d70a3998b3b79447d46a49" - -http_archive( - name = "python_2024_2", - build_file_content = _PYTHON_CE_242_BUILD_FILE, - sha256 = PYTHON_PLUGIN_242_SHA, - url = PYTHON_PLUGIN_242_URL, -) - -_GO_BUILD_FILE_223 = """ -java_import( - name = "go", - jars = glob(["go-plugin/lib/*.jar"]), - visibility = ["//visibility:public"], -) -""" - -http_archive( - name = "go_2022_3", - build_file_content = _GO_BUILD_FILE_223, - sha256 = "11d30e00aa21fc8c7aa47df3743c0180058556cbb73292c712e151a0c3d59908", - url = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/223.7571.182/org.jetbrains.plugins.go-223.7571.182.zip", -) - -GO_PLUGIN_231_SHA = "a8d277125ec1f6a2ba0190a7c456d6c39057e563596874ec432a8f278b3d6976" - -GO_PLUGIN_231_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/231.9392.1/org.jetbrains.plugins.go-231.9392.1.zip" - -http_archive( - name = "go_2023_1", - build_file_content = _GO_BUILD_FILE_223, - sha256 = GO_PLUGIN_231_SHA, - url = GO_PLUGIN_231_URL, -) - -GO_PLUGIN_232_SHA = "6682325b13d66b716fc9bc719821f3f7bad16f21ac4504cc4656265fee74ceb4" - -GO_PLUGIN_232_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/232.10203.2/org.jetbrains.plugins.go-232.10203.2.zip" - -http_archive( - name = "go_2023_2", - build_file_content = _GO_BUILD_FILE_223, - sha256 = GO_PLUGIN_232_SHA, - url = GO_PLUGIN_232_URL, -) - -GO_PLUGIN_233_SHA = "6ec43880bfbedaead564def4b9f40baa13de4167d7d7c7c0522f7e7c5dd77a77" - -GO_PLUGIN_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/233.15026.9/org.jetbrains.plugins.go-233.15026.9.zip" - -http_archive( - name = "go_2023_3", - build_file_content = _GO_BUILD_FILE_223, - sha256 = GO_PLUGIN_233_SHA, - url = GO_PLUGIN_233_URL, -) - -GO_PLUGIN_241_SHA = "18f9b114a372730e3b869cc3bf99bc3e019611571aa0edfd0517f1d10b83e422" - -GO_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/241.18968.26/org.jetbrains.plugins.go-241.18968.26.zip" - -http_archive( - name = "go_2024_1", - build_file_content = _GO_BUILD_FILE_223, - sha256 = GO_PLUGIN_241_SHA, - url = GO_PLUGIN_241_URL, -) - -_GO_BUILD_FILE_242 = """ -java_import( - name = "go", - jars = glob(["go-plugin/lib/*.jar", "go-plugin/lib/modules/*.jar"]), - visibility = ["//visibility:public"], -) -""" - -GO_PLUGIN_242_SHA = "5bc103a659b6bddaef19c788dbfbabcb96417eb132009b040ad6f91bde3e87d1" - -GO_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.jetbrains.plugins.go/242.21829.142/org.jetbrains.plugins.go-242.21829.142.zip" - -http_archive( - name = "go_2024_2", - build_file_content = _GO_BUILD_FILE_242, - sha256 = GO_PLUGIN_242_SHA, - url = GO_PLUGIN_242_URL, -) - -_SCALA_BUILD_FILE = """ -java_import( - name = "scala", - jars = glob(["Scala/lib/*.jar"]), - visibility = ["//visibility:public"], -) -""" - -http_archive( - name = "scala_2022_3", - build_file_content = _SCALA_BUILD_FILE, - sha256 = "f028ac7263433c8692d9d4c92aaba9e114fc75f6299d4d86817db371409f74f3", - url = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2022.3.13/org.intellij.scala-2022.3.13.zip", -) - -SCALA_PLUGIN_231_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2023.1.25/org.intellij.scala-2023.1.25.zip" - -SCALA_PLUGIN_231_SHA = "b45dbb95ed5a0001f11638e7f03dd858d9e243994ca554a64e1df6b7290b2b81" - -http_archive( - name = "scala_2023_1", - build_file_content = _SCALA_BUILD_FILE, - sha256 = SCALA_PLUGIN_231_SHA, - url = SCALA_PLUGIN_231_URL, -) - -SCALA_PLUGIN_232_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2023.2.30/org.intellij.scala-2023.2.30.zip" - -SCALA_PLUGIN_232_SHA = "16896d256bea7f84343dbfec11808c8d9f861fdc99b0ca26d2eeb5d510398ba8" - -http_archive( - name = "scala_2023_2", - build_file_content = _SCALA_BUILD_FILE, - sha256 = SCALA_PLUGIN_232_SHA, - url = SCALA_PLUGIN_232_URL, -) - -SCALA_PLUGIN_233_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2023.3.30/org.intellij.scala-2023.3.30.zip" - -SCALA_PLUGIN_233_SHA = "0c7ffd6f642face7d15d0f8aaa40430041c8a3d00d3b213659d17146f64e2052" - -http_archive( - name = "scala_2023_3", - build_file_content = _SCALA_BUILD_FILE, - sha256 = SCALA_PLUGIN_233_SHA, - url = SCALA_PLUGIN_233_URL, -) - -SCALA_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2024.1.25/org.intellij.scala-2024.1.25.zip" - -SCALA_PLUGIN_241_SHA = "3d550756eab61858618dc7d695283cd0569c47b680bf823f2d46fd9c130f5422" - -http_archive( - name = "scala_2024_1", - build_file_content = _SCALA_BUILD_FILE, - sha256 = SCALA_PLUGIN_241_SHA, - url = SCALA_PLUGIN_241_URL, -) - -SCALA_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.intellij.scala/2024.2.25/org.intellij.scala-2024.2.25.zip" - -SCALA_PLUGIN_242_SHA = "9358ac824310fc13d7336c46a2c7e7bf17984c6f4ff75d4986ea2c89901418aa" - -http_archive( - name = "scala_2024_2", - build_file_content = _SCALA_BUILD_FILE, - sha256 = SCALA_PLUGIN_242_SHA, - url = SCALA_PLUGIN_242_URL, -) - -_TOML_BUILD_FILE = """ -java_import( - name = "toml", - jars = ["toml/lib/toml.jar"], - visibility = ["//visibility:public"], -) -""" - -TOML_PLUGIN_241_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.toml.lang/241.17011.8/org.toml.lang-241.17011.8.zip" - -TOML_PLUGIN_241_SHA = "17572527d9aa2f31cd9fa670de68054cb586af3aa2eca9cb204b0f33043e9839" - -# TOML required by Python since 241.13688.18 -http_archive( - name = "toml_2024_1", - build_file_content = _TOML_BUILD_FILE, - sha256 = TOML_PLUGIN_241_SHA, - url = TOML_PLUGIN_241_URL, -) - -TOML_PLUGIN_242_URL = "https://plugins.jetbrains.com/maven/com/jetbrains/plugins/org.toml.lang/242.20224.155/org.toml.lang-242.20224.155.zip" - -TOML_PLUGIN_242_SHA = "96bd1964b5b4bc7f778c87dddee11b8f7e3d08559a2a72e52909ce4d31be2d9c" - -# TOML required by Python since 242.13688.18 -http_archive( - name = "toml_2024_2", - build_file_content = _TOML_BUILD_FILE, - sha256 = TOML_PLUGIN_242_SHA, - url = TOML_PLUGIN_242_URL, -) - -# The plugin api for android_studio_dev android_studio. This is required to build ASwB and run integration tests -http_archive( - name = "android_studio_dev", - build_file = "@//intellij_platform_sdk:BUILD.android_studiodev", - sha256 = "cb3f0494220f92dd85399adfb8655a1a2bd81b238d26e63a8bbd8bde95a0fccf", - url = "https://android-build", -) - -# The plugin api for android_studio_2023_2 android_studio. This is required to build ASwB and run integration tests -http_archive( - name = "android_studio_2023_2", - build_file = "@//intellij_platform_sdk:BUILD.android_studio232", - sha256 = "f2ccc445fb5c87525627ae81725241ab90d9707d577f5732563d3c5a49cba12f", - url = "https://dl.google.com/dl/android/studio/ide-zips/2023.2.1.14/android-studio-2023.2.1.14-linux.tar.gz", -) - -# The plugin api for android_studio_2023_1 android_studio. This is required to build ASwB and run integration tests -http_archive( - name = "android_studio_2023_1", - build_file = "@//intellij_platform_sdk:BUILD.android_studio231", - sha256 = "139d0dbb4909353b68fbf55c09b6d31a34512044a9d4f02ce0f1a9accca128f9", - url = "https://dl.google.com/dl/android/studio/ide-zips/2023.1.1.28/android-studio-2023.1.1.28-linux.tar.gz", -) - -# The plugin api for android_studio_2022_3 android_studio. This is required to build ASwB and run integration tests -http_archive( - name = "android_studio_2022_3", - build_file = "@//intellij_platform_sdk:BUILD.android_studio223", - sha256 = "250625dcab183e0c68ebf12ef8a522af7369527d76f1efc704f93c05b02ffa9e", - url = "https://dl.google.com/dl/android/studio/ide-zips/2022.3.1.19/android-studio-2022.3.1.19-linux.tar.gz", -) android_sdk_repository(name = "androidsdk") -_JARJAR_BUILD_FILE = """ -java_binary( - name = "jarjar_bin", - srcs = glob( - ["src/main/**/*.java"], - exclude = [ - "src/main/com/tonicsystems/jarjar/JarJarMojo.java", - "src/main/com/tonicsystems/jarjar/util/AntJarProcessor.java", - "src/main/com/tonicsystems/jarjar/JarJarTask.java", - ], - ), - main_class = "com.tonicsystems.jarjar.Main", - resources = [":help"], - use_launcher = False, - visibility = ["//visibility:public"], - deps = [":asm"], -) - -java_import( - name = "asm", - jars = glob(["lib/asm-*.jar"]), -) - -genrule( - name = "help", - srcs = ["src/main/com/tonicsystems/jarjar/help.txt"], - outs = ["com/tonicsystems/jarjar/help.txt"], - cmd = "cp $< $@", -) -""" - -new_git_repository( - name = "jarjar", - build_file_content = _JARJAR_BUILD_FILE, - commit = "38ff702d10baec78f30d5f57485ae452f0fe33b5", - remote = "https://github.com/google/jarjar", - shallow_since = "1518210648 -0800", -) - # LICENSE: The Apache Software License, Version 2.0 rules_scala_version = "8f255cd1fecfe4d43934b161b3edda58bdb2e8f4" @@ -624,57 +33,4 @@ scalatest_repositories() scalatest_toolchain() -# needed for cpp tests -http_archive( - name = "com_google_absl", - sha256 = "f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3", - strip_prefix = "abseil-cpp-20240722.0", - urls = [ - "https://github.com/abseil/abseil-cpp/archive/refs/tags/20240722.0.tar.gz", - ], -) - -http_archive( - name = "io_bazel_rules_go", - sha256 = "67b4d1f517ba73e0a92eb2f57d821f2ddc21f5bc2bd7a231573f11bd8758192e", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.50.0/rules_go-v0.50.0.zip", - ], -) -load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") -go_rules_dependencies() - -# Dependency needed for Go test library -http_archive( - name = "bazel_gazelle", - sha256 = "8ad77552825b078a10ad960bec6ef77d2ff8ec70faef2fd038db713f410f5d87", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.38.0/bazel-gazelle-v0.38.0.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.38.0/bazel-gazelle-v0.38.0.tar.gz", - ], -) - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") - -# gRPC is used to generate Go from proto in the aspect tests, in -# //aspect/testing/tests/src/com/google/idea/blaze/aspect/go/... -go_repository( - name = "org_golang_google_grpc", - build_file_proto_mode = "disable", - importpath = "google.golang.org/grpc", - sum = "h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk=", - version = "v1.27.1", -) - -load("@io_bazel_rules_go//tests:grpc_repos.bzl", "grpc_dependencies") - -grpc_dependencies() - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains(version = "1.20.5") -gazelle_dependencies(go_repository_default_config = "//:WORKSPACE.bzlmod")