Annotation Processor in IntelliJ and Gradle

前端 未结 4 1501
终归单人心
终归单人心 2020-12-17 09:18

tl;dr: I cannot configure IntelliJ to generate the java files in the same directory as gradle

I have a small project which uses the immutables annot

4条回答
  •  醉梦人生
    2020-12-17 09:39

    2019.2.x

    • Disable annotation processor of intellij

    • add, build directory in your gradle build.gradle file

    • then run your gradle task to generate build file classes, example gradle compileJava

    • File -> project structure -> Modules -> Main Folder || remove exclude and add as source

    And project should find all annotation and generated source file. Hope it helps.

提交回复
热议问题