4 ms·
Is it? Maybe our company is doing something stupid then. I'm not mainly a Java person, but I do sometimes pitch in here and there. We're using maven, and it's
by dilap 6y ago
Is it? Maybe our company is doing something stupid then.
I'm not mainly a Java person, but I do sometimes pitch in here and there. We're using maven, and it's definitely not doing incremental compilation. I mentioned this was crazy to the Java guys and they said it was normal for maven...
(They're also in an IDE most of the time, so maybe they don't care so much.)
- ysleepy 6y agoThey probably invoke maven with "mvn clean package" which does a fresh complete build, but only for deploying it.
- dilap 6y agoI'm running "mvn install -DskipTests" w/ no files changed. It takes about 22 seconds and I see messages like > Changes detected - recompiling the module! > [INFO] Compiling 734 source files... Perhaps we're doing something strange or dumb or somehow don't have incremental compilation turned on...
- ptx 6y agoIt seems[1] there's a flag called useIncrementalCompilation which is indeed enabled by default but doesn't actually cause any incremental compilation to happen. Setting the flag to false causes it to compile only changed files, but this will give incorrect results, for the reasons described in the Kotlin blog post. [1] https://stackoverflow.com/a/49700942 https://stackoverflow.com/a/49700942