Querydsl Annotation Processor issue after upgrade to Gradle 5

后端 未结 6 1159
孤独总比滥情好
孤独总比滥情好 2021-01-02 19:13

I have a gradle script which generates querydsl classes from Mongo annotated entities. It was working so far, but after upgrade to Gradle 5 I have a problem with:

         


        
6条回答
  •  无人及你
    2021-01-02 19:52

    I see you have compile("com.querydsl:querydsl-apt:4.1.4") in your dependencies. According to the docs

    Since implementation details matter for annotation processors, they must be declared separately on the annotation processor path. Gradle ignores annotation processors on the compile classpath.

    So, put com.querydsl:querydsl-apt:4.1.4 in the annotationProcessor scope.

    BTW, consider switching to api / implementation scopes over compile.

提交回复
热议问题