QueryDsl annotatioprocessor class not found

Hi guys,

I recently have migrated a maven project to gradle. But I have an issue generating the Q… classes from querydsl. In the build.gradle we have this configuration:

dependencies {

    compile 'javax.validation:validation-api:1.1.0.Final'
    compile 'io.swagger:swagger-annotations:1.5.16'

    compile 'org.hibernate:hibernate-annotations:3.4.0.GA'
    //FIXME: include querydsl processor causes: java.lang.NoClassDefFoundError: javax/persistence/Entity
    annotationProcessor "com.mysema.querydsl:querydsl-apt:3.6.3:jpa"


Any suggest?


If your Gradle is above 5, it won’t work.