module-dependencies

Manage IntelliJ module dependencies by guiding iml file updates.

20.4k|6.0k|Updated Sep 30, 2011
One-click install
npx skills add https://github.com/JetBrains/intellij-community --skill module-dependencies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: module-dependencies
Source: https://github.com/JetBrains/intellij-community/tree/main/.agents/skills/module-dependencies
Command: npx skills add https://github.com/JetBrains/intellij-community --skill module-dependencies

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing module dependencies in the IntelliJ codebase can be error-prone when editing iml files directly. This guide provides a clear approach to track, adjust, and validate module dependencies to ensure consistent and reliable builds.

Core Features & Use Cases

  • IML-to-Bazel generator: Converts .iml-defined module dependencies to Bazel BUILD files to keep build systems in sync.
  • Auto-generated section awareness: Generator updates only auto-generated sections of BUILD files, preserving custom edits.
  • Skip generation marker: Allows selectively disabling generation for specific sections.

Quick Start

Run the IML-to-Bazel Generator after editing .iml files to refresh BUILD.bazel files.

Frequently Asked Questions about module-dependencies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update IntelliJ module dependencies in iml files?

Update IntelliJ module dependencies by editing .iml files to add, remove, or adjust dependencies, then run the IML-to-Bazel generator to sync changes into Bazel BUILD files for consistent builds.

How does the IML-to-Bazel generator handle custom edits in BUILD files?

The IML-to-Bazel generator updates only auto-generated sections of BUILD files, preserving any custom edits you made outside those marked areas to prevent unintended overwrites.

Can I disable Bazel build generation for specific module dependencies?

Yes, you can selectively disable generation for specific sections by using a skip generation marker, which prevents the IML-to-Bazel generator from overwriting those dependencies.

What is the best way to keep Bazel build scripts in sync with IntelliJ project configuration?

The best way to keep Bazel build scripts in sync is to modify your module dependencies in .iml files and run the IML-to-Bazel generator to refresh the BUILD.bazel files.

Why do my Bazel BUILD files not reflect changes made to IntelliJ module dependencies?

Bazel BUILD files do not reflect .iml changes automatically because the IML-to-Bazel generator must be manually executed after editing module dependencies to refresh the build configuration.