i am using gradle6+, openjdk11 and querydsl 4.2.x for a springboot project, facing an issue like below
Caused by: java.lang.ClassNotFoundException: com.querydsl.apt.jpa.JPAAnnotationProcessor
in gradle script, have added
annotationProcessor 'com.querydsl:querydsl-apt:4.2.1:jpa'
annotationProcessor "javax.annotation:javax.annotation-api:1.3.1"
annotationProcessor 'org.springframework.boot:spring-boot-starter-data-jpa'
compile("com.querydsl:querydsl-core:${project.querydsl}")
compile("com.querydsl:querydsl-jpa:${project.querydsl}")
Can someone kindly let me help solving the issue?
I solved and able to compile the QClasses without this JPAProcessor in gradle build file. Looks to be with latest versions, we dont need this JPAProcessor while QClasses getting compiled. Just by placing the annotation processor as dependency is fine. The Java compile is able to create QClasses. I just used