Configure annotation processing output path with Gradle
已回答
I noticed that IDEA 2019.3 now does a very good job with synchronising annotation processing from Gradle, that's great – it allows me to remove some workarounds I had in place before. However, there's still something that bugs me: It configures the output directory for generated sources as "generated" and "generated_tests" relative to the module content root. In other words, it puts compilation artefacts right into my source directory, which is quite ugly (though acceptable).
Is there a way to configure this path to something else? e.g. "../out/production/generated" to keep them separate from Gradle compilation but still in a dedicated output directory?
请先登录再写评论。
You're right, for
non-delegated
builds - the folder relative to the module content root will be used. It's not configurable now, please file an issue for the case. Please vote for this request: https://youtrack.jetbrains.com/issue/IDEA-228571