# 添加 Gant 脚本

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/idea/llms.txt).

IntelliJ IDEA 允许您为 Groovy、Grails 和 Griffon 项目添加 Gant 脚本。

> **Note:**
> 对于 Groovy 项目，您需要在添加 Gant 脚本之前，在   项目设置 | Gant   中指定 [Gant 主目录](gant-settings.html) 的位置。

## 添加 Gant 脚本

1.  在 Project 工具窗口中，右键点击您想要创建 Gant 脚本文件的目录。

2.  从上下文菜单中选择   新建 | Gant Script  。

3.  在   新的Gant脚本  对话框中，指定脚本的名称，然后点击   OK  。

4.  IntelliJ IDEA 会创建一个具有默认目标的 Gant 文件。

## See also

### 概念

[Gant](gant.html)

### 过程

[运行 Gant targets](running-gant-targets.html)

### 参考

[甘特图设置](gant-settings.html)

