anchor.diff:  
   ++++
   <sample id="useIdeaPlugin" dir="idea" title="Using the IDEA plugin">
  -            <sourcefile file="build.gradle" snippet="use-plugin"/>
  -        </sample>
  +    <sourcefile file="build.gradle" snippet="use-plugin"/>
  +</sample>
   ++++
   
   The IDEA plugin adds a number of tasks to your project. The `idea` task generates an IDEA module file for the project. When the project is the root project, the `idea` task also generates an IDEA project and workspace. The IDEA project includes modules for each of the projects in the Gradle build.
  
positive.code: 
  The IDEA plugin generates files that are used by http://www.jetbrains.com/idea/[IntelliJ IDEA], thus making it possible to open the project from IDEA (`File` - `Open Project`). Both external dependencies (including associated source and Javadoc files) and project dependencies are considered.
  
  What exactly the IDEA plugin generates depends on which other plugins are used:
  
  .IDEA plugin behavior
  [cols="a,a", options="header"]
  |===
  | Plugin
  | Description
  
  | None
  | Generates an IDEA module file. Also generates an IDEA project and workspace file if the project is the root project.
  
  | <<java_plugin,Java>>
  | Adds Java configuration to the module and project files.
  |===
  
  One focus of the IDEA plugin is to be open to customization. The plugin provides a standardized set of hooks for adding and removing content from the generated files.
  
  
negative.code: ===== Modifying the fully populated domain objects
  
  The `whenMerged` hook allows you to manipulate the fully populated domain objects. Often this is the preferred way to customize IDEA files. Here is how you would export all the dependencies of an IDEA module:
  
  ++++
  <sample id="exportDependencies" dir="idea" title="Export Dependencies">
      <sourcefile file="build.gradle" snippet="module-when-merged"/>
  </sample>
  ++++
  
  
  