I have a Spring Project with about 3500 files. 99% of the files are currently generated off a third party codegen library JOOQ. When I change in the remaining 1% of the files it sometimes does a full javaCompile and sometimes does incremental build - as if it has a mind of its own.
When it does a full compile for small code changes during the change -> build -> run cycle is it very disruptive as full build takes over 5 minutes. Every second or third recompile this happens.
I have this entry in gradle.build:
//enable compilation in a separate daemon process
options.fork = true
//enable incremental compilation
options.incremental = true
And this is what gradle.properties looks like:
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
How can this be fixed?