Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The documentation below needs to be rechecked and reorganized. This is a work-in-progress. 

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyBEAM-5764
 

Create a working Gradle module

(as of IntelliJ 2018.1.6)

  1. Create an empty IntelliJ project outside of the Beam source tree.
  2. Under File > Project Structure > Project, select a Project SDK.
  3. Under File > Project Structure > Modules, click the + sign to add a module and select “Import Module”.
    1. Select the directory containing the Beam source tree.
    2. Tick the “Import module from external model” button and select Gradle from the list.
    3. Tick the following boxes.
      • Create separate module per source set
      • Use default gradle wrapper
  4. Delegate build actions to Gradle by going to FIle > Settings/Preferences > Build, Execution, Deployment > Build Tools > Gradle > Runner and checking “Delegate IDE build/run actions to gradle”.

This should result in a working Gradle project. Build the project by executing the “build” task in the root Gradle module.

Checkstyle

IntelliJ supports checkstyle within the IDE using the Checkstyle-IDEA plugin.

...