diff --git a/.bazelproject b/.bazelproject index 7b58497ca574..19e96d4bb78d 100644 --- a/.bazelproject +++ b/.bazelproject @@ -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 \ No newline at end of file + tools/bazelRunConfigurations/Run___build_idea_community.xml + tools/bazelRunConfigurations/Run___build_jewel_standalone_sample.xml \ No newline at end of file diff --git a/BUILD.bazel b/BUILD.bazel index 43940e255535..1297f39a7e02 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -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( diff --git a/MODULE.bazel b/MODULE.bazel index 2a97684af8f0..db2d6a8dd372 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -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") diff --git a/platform/jewel/BUILD.bazel b/platform/jewel/BUILD.bazel new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/platform/jewel/jewel_deps.MODULE.bazel b/platform/jewel/jewel_deps.MODULE.bazel new file mode 100644 index 000000000000..1ca4ac195505 --- /dev/null +++ b/platform/jewel/jewel_deps.MODULE.bazel @@ -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", +) diff --git a/platform/jewel/samples/standalone/BUILD.bazel b/platform/jewel/samples/standalone/BUILD.bazel index 732d1988b182..d3462f064954 100644 --- a/platform/jewel/samples/standalone/BUILD.bazel +++ b/platform/jewel/samples/standalone/BUILD.bazel @@ -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( diff --git a/tools/bazelRunConfigurations/Run___build_jewel_standalone_sample.xml b/tools/bazelRunConfigurations/Run___build_jewel_standalone_sample.xml new file mode 100644 index 000000000000..c9ad177cc8a9 --- /dev/null +++ b/tools/bazelRunConfigurations/Run___build_jewel_standalone_sample.xml @@ -0,0 +1,11 @@ + + + + @//platform/jewel/samples/standalone:standalone_sample + + + + + + \ No newline at end of file