Gradle + MapStruct: Setting the Generated Java Files Location
Add the following content to build.gradle:
tasks.withType(JavaCompile) {
options.setAnnotationProcessorGeneratedSourcesDirectory(file("$projectDir/out/generated/java"))
}
Add the following content to build.gradle:
tasks.withType(JavaCompile) {
options.setAnnotationProcessorGeneratedSourcesDirectory(file("$projectDir/out/generated/java"))
}