title: Running IntelliJ Inspections via Gradle/TeamCity
body: <p>I am attempting (unsuccessfully) to run IntelliJ Inspections on a java Gradle project in TeamCity.  The <a href="https://confluence.jetbrains.com/display/TCD9/Inspections" rel="nofollow noreferrer">documentation</a> is a bit confusing; specifically, it states "To run inspections for your project, you must have either an IntelliJ IDEA project file (.ipr) or a project directory (.idea) checked into your version control."  However, it also claims support for both Maven (see <a href="https://stackoverflow.com/questions/4261688/running-intellij-inspections-via-maven-teamcity">this post</a>) and Gradle projects, which seems inconsistent with a requirement to commit the IntelliJ project files.</p>
  
  <p>Our team prefers not to commit the IntelliJ project files, and therefore I am attempting to use my build.gradle file and an inspection profile. However, even for the simplest gradle project I can create, I am unable to get IntelliJ inspections to run successfully on TeamCity.  Instead, I get this in the log:</p>
  
  <blockquote>
    <p>[Step 2/2] [   6968]   WARN - .manage.ContentRootDataService - Can't import content roots. Reason: target module (ModuleData: module ':d9cc8a1592d04689:unspecified') is not found at the ide.</p>
  </blockquote>
  
  <p>Am I attempting the impossible?</p>