You can create Griffon Application modules. IntelliJ IDEA generates the necessary infrastructure. You can view module structure in the Griffon tool window, and use framework-specific commands.

To create a Griffon Application module
  1. Do one of the following:
    • If you are going to create a new project: click Create New Project on the Welcome screen or select File | New Project.

      As a result, the New Project wizard opens.

    • If you are going to add a module to an existing project: open the project you want to add a module to, and select File | New Module.

      As a result, the New Module wizard opens.

  2. On the first page of the wizard, in the left-hand pane, select Griffon Module.
  3. In the right-hand part of the page, specify the associated settings and click Next. (See the descriptions of the settings for a new project or for an existing project.)
  4. On the next page of the wizard, specify Griffon SDK. You can also perform the following actions:
    • If you have SDKs for the selected framework already installed, choose one from the list.
    • If you cannot find the desired SDK in the list, click Create. In the dialog box that opens, choose a directory that contains Griffon distribution.
    • If you need to edit a selected SDK, click Configure. In the Edit Library dialog, make the necessary changes.

    Click Finish.

  5. In the dialog box that opens, select the Griffon structure that you want to execute. IntelliJ IDEA lets you create and execute the following Griffon structures:
    • Create an application (create-app) - creates Griffon application.
    • Create a plugin (create-plugin) - creates Griffon plugin.
    • Create an addon (create-addon) - creates Griffon addon.
    • Create an archetype (create-archetype) - creates Griffon archetype.

    You can also specify additional options in the Additional Options field such as file types. For example, -fileType=java. The default file type is groovy.

    Click OK.

See Also

Procedures:

Language and Framework-Specific Guidelines:

External Links:

Web Resources: