Skip to content

Conversation

@shalupov
Copy link
Contributor

@shalupov shalupov commented Dec 7, 2025

We're switing to Bazel, so JPS artifacts will be unavailable, but in this case detekt plugins are easily built by Bazel


Note

Removes IDEA JPS detekt artifacts, adds Bazel binaries for detekt plugin and compose rules, refactors Kotlin compiler deps, and updates setup docs.

  • Build/Artifacts:
    • Remove IDEA JPS artifacts intellij_libraries_detekt_compose_rules_jar.xml and intellij_platform_jewel_detektPlugin_jar.xml.
    • Add Bazel java_binary targets to produce plugin jars:
      • platform/jewel/detekt-plugin:detekt-plugin-binary(_deploy) with excludes.
      • libraries/detekt-compose-rules:detekt-compose-rules-binary(_deploy).
  • Dependencies:
    • Refactor detekt plugin deps in lib/BUILD.bazel to avoid bundling stdlib/coroutines; introduce platform-jewel-detekt_plugin-jetbrains-kotlin-compiler-embeddable and related jvm_imports.
    • Tidy MODULE.bazel/lib/BUILD.bazel http_file/jvm_import entries (move/add Kotlin compiler, daemon, trove4j) and adjust exports for detekt api/core/test.
  • IDE config:
    • Update intellij.platform.jewel.detektPlugin.iml to use a dedicated Kotlin compiler embeddable library and exclude stdlib/coroutines from detekt deps.
  • Docs:
    • Update platform/jewel/detekt-libs/updating-rules.md with Bazel build steps for plugin and rules jars.

Written by Cursor Bugbot for commit 360b418. This will update automatically on new commits. Configure here.

@shalupov shalupov force-pushed the leonid.shalupov/IJI-3197-jps-jewel-artifacts branch from 3d205d8 to 360b418 Compare December 7, 2025 18:24
@rock3r rock3r self-requested a review December 11, 2025 08:47
@rock3r rock3r removed their assignment Dec 11, 2025
@rock3r rock3r added the Jewel label Dec 11, 2025
Comment on lines +19 to +20
7. Add the [`detekt-compose.jar`](../../../out/bazel-bin/libraries/detekt-compose-rules/detekt-compose-rules-binary_deploy.jar) file as a plugin
8. Add the [`detekt-plugin-binary_deploy.jar`](../../../out/bazel-bin/platform/jewel/detekt-plugin/detekt-plugin-binary_deploy.jar)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance we can add a copy action to the build to keep the paths the same? I.e., once it's built, copy the jar to this folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants