[JEWEL-1334] Gradle Scripts Migration to Bazel (Part 1)

closes https://github.com/JetBrains/intellij-community/pull/3562

(cherry picked from commit 867bfc09a26aa1faf8e6582a912558f80acbe628)


(cherry picked from commit 7d4373db035c9b766349ae14ee72a104549c008d)

IJ-MR-215743

GitOrigin-RevId: 637042f03df679ae63f6a6e7b85cccfdc7ca1630
This commit is contained in:
Daniel Bertoldi
2026-08-07 15:34:23 +00:00
committed by intellij-monorepo-bot
parent b932fb8ce6
commit 1ac3e8a092
7 changed files with 48 additions and 1 deletions
+2 -1
View File
@@ -19,4 +19,5 @@ run_config_run_with_bazel: false
import_run_configurations:
tools/bazelRunConfigurations/Run___build_android_studio.xml
tools/bazelRunConfigurations/Run___build_i_build_target.xml
tools/bazelRunConfigurations/Run___build_idea_community.xml
tools/bazelRunConfigurations/Run___build_idea_community.xml
tools/bazelRunConfigurations/Run___build_jewel_standalone_sample.xml
+5
View File
@@ -140,6 +140,11 @@ java_binary(
## see community/build/tests-options.bzl
exports_files(["intellij.idea.community.main.iml"])
exports_files(
glob(["build.txt"]),
visibility = ["//visibility:public"],
)
### auto-generated section `build intellij.idea.community.main` start
jvm_library(
+1
View File
@@ -91,6 +91,7 @@ kotlin_test_deps = use_repo_rule("//plugins/kotlin:kotlin_test_dependencies.bzl"
kotlin_test_deps(name = "kotlin_test_deps")
include("//:debugger_test_deps.MODULE.bazel")
include("//platform/jewel:jewel_deps.MODULE.bazel")
jbr_toolchains = use_extension("@community//build:jbr-toolchains.bzl", "jbr_toolchains")
View File
+22
View File
@@ -0,0 +1,22 @@
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_file(
name = "jewel_deps_kotlinpoet",
downloaded_file_path = "kotlinpoet.jar",
sha256 = "585b5673a86301e5e06d307a3327d5a73e213cb7600d1c856604ede016f1d656",
url = "https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/squareup/kotlinpoet-jvm/2.1.0/kotlinpoet-jvm-2.1.0.jar",
)
http_file(
name = "jewel_deps_ktfmt",
downloaded_file_path = "ktfmt.jar",
sha256 = "d13324023754112797d828e2f92117196190f7617d16ad1d1765e5be768cc5c2",
url = "https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/facebook/ktfmt/0.55/ktfmt-0.55-with-dependencies.jar",
)
http_file(
name = "jewel_deps_detekt",
downloaded_file_path = "detekt.jar",
sha256 = "3afe89a11120303c73c9bdda3d8fe558dd9070a6937d27819ddc04b275381245",
url = "https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/io/gitlab/arturbosch/detekt/detekt-cli/1.23.8/detekt-cli-1.23.8-all.jar",
)
@@ -1,6 +1,13 @@
load("@rules_java//java:defs.bzl", "java_binary")
load("@rules_jvm//:jvm.bzl", "jvm_library")
load("//build:compiler-options.bzl", "create_kotlinc_options")
java_binary(
name = "standalone_sample",
main_class = "org.jetbrains.jewel.samples.standalone.MainKt",
runtime_deps = [":standalone"],
)
### auto-generated section `build intellij.platform.jewel.samples.standalone` start
create_kotlinc_options(
@@ -0,0 +1,11 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run //jewel/standalone:standalone_sample" type="BazelRunConfigurationType">
<bsp-state handler-provider-id="JvmRunHandlerProvider" check-visibility="true">
<bsp-target>@//platform/jewel/samples/standalone:standalone_sample</bsp-target>
<handler-state />
</bsp-state>
<method v="2">
<option name="BuildScriptBeforeRunTaskProvider" enabled="false" />
</method>
</configuration>
</component>