title: How to configure querydsl in spring boot 1.4.1?
body: <p>Im trying to enable querydsl using spring-data-jpa for a project, however Im getting some compilation errors like:</p>
  
  <pre><code>The type com.querydsl.core.types.Predicate cannot be resolved. It is indirectly referenced from required .class files
  </code></pre>
  
  <p>Also, when I run mvn clean install I get this:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: com.querydsl.core.annotations.QueryEntities
  </code></pre>
  
  <p>I review the jar in my classpath and I can see querydsl-core 4.1.4, querydsl-apt 4.1.4 and querydsl-jpa 4.1.4.  But the project still not compiling for me, is there any issue with springboot 1.4.1 and querydsl?</p>
  
  <p>I have this in my pom.xml file</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.querydsl&lt;/groupId&gt;
      &lt;artifactId&gt;querydsl-jpa&lt;/artifactId&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.querydsl&lt;/groupId&gt;
      &lt;artifactId&gt;querydsl-apt&lt;/artifactId&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and the plugin</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.mysema.maven&lt;/groupId&gt;
      &lt;artifactId&gt;apt-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.1.3&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;process&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;outputDirectory&gt;target/generated-sources/java&lt;/outputDirectory&gt;
                  &lt;processor&gt;com.querydsl.apt.jpa.JPAAnnotationProcessor&lt;/processor&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Am I doing something wrong?</p>
  
  <p>--- UPDATE ---</p>
  
  <p>I downgrade from querydsl 4.1.4 to 4.1.3 and at least is compiling the project.  Now, I can start some testing I will post my findings.</p>
  
  <p>I think the question still open, because by default spring boot 1.4.1 comes with querydsl 4.1.4 version.</p>